|
@@ -57,16 +57,6 @@
|
|
|
<el-col :span="18" class="other" v-if="!item.goods.freight == '0'">{{ item.goods.freight }}</el-col>
|
|
|
<el-col :span="18" class="other" v-else>包邮</el-col>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="24" class="bode">
|
|
|
- <el-col :span="6">查看商品来源:</el-col>
|
|
|
- <el-col :span="18" class="other">{{ item.goods.source || '暂无来源' }} </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="bode">
|
|
|
- <el-col :span="6">网址:</el-col>
|
|
|
- <el-col :span="18" class="other">
|
|
|
- <span class="spanfour" @click="toUrl(goods.goods.url)"> {{ goods.goods.url || '暂无网址' }} </span>
|
|
|
- </el-col>
|
|
|
- </el-col> -->
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="bode">
|
|
|
<el-col :span="6">订单备注</el-col>
|
|
@@ -77,12 +67,6 @@
|
|
|
<el-col :span="6">配送方式</el-col>
|
|
|
<el-col :span="18" class="other">快递配送</el-col>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="24" class="goods_total bode">
|
|
|
- <el-col :span="6">商品金额</el-col>
|
|
|
- <el-col :span="18" class="other">
|
|
|
- <p>¥{{ total_detail.goods_total }}</p>
|
|
|
- </el-col>
|
|
|
- </el-col> -->
|
|
|
<el-col :span="24" class="goods_total bode">
|
|
|
<el-col :span="6">快递费</el-col>
|
|
|
<el-col :span="18" class="other">
|
|
@@ -111,20 +95,16 @@
|
|
|
<el-col :span="6">寄出快递类型</el-col>
|
|
|
<el-col :span="18" class="other">{{ transport.shop_transport_name || '暂无快递信息' }}</el-col>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="form">
|
|
|
+ <el-col v-if="form.status == '1' || form.status == '2' || form.status == '3'">
|
|
|
+ <el-button type="primary" @click="toStatus('2')" v-if="form.status == '1'"> 发货中 </el-button>
|
|
|
+ <el-button type="primary" @click="toStatus('3')" v-if="form.status == '2'"> 已发货,确认收货 </el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="form" v-if="(form.status == '1' || form.status == '2') && (!transport.shop_transport_no || !transport.shop_transport_name)">
|
|
|
<el-form :model="form" ref="form" label-width="100px" class="demo-ruleForm">
|
|
|
- <el-form-item
|
|
|
- label="寄出运单号"
|
|
|
- prop="shop_transport_no"
|
|
|
- v-if="(form.status == '1' || form.status == '2') && (!transport.shop_transport_no || !transport.shop_transport_name)"
|
|
|
- >
|
|
|
+ <el-form-item label="寄出运单号" prop="shop_transport_no">
|
|
|
<el-input v-model="form.shop_transport_no" placeholder="请输入运单号,快递类型,同时填入" size="small"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="快递类型"
|
|
|
- prop="shop_transport_type"
|
|
|
- v-if="(form.status == '1' || form.status == '2') && (!transport.shop_transport_no || !transport.shop_transport_name)"
|
|
|
- >
|
|
|
+ <el-form-item label="快递类型" prop="shop_transport_type">
|
|
|
<el-select
|
|
|
v-model="form.shop_transport_type"
|
|
|
filterable
|
|
@@ -140,11 +120,11 @@
|
|
|
<el-option v-for="item in shop_transport_typeList" :key="item.id" :label="item.label" :value="item.value"> </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="订单状态" prop="status">
|
|
|
+ <!-- <el-form-item label="订单状态" prop="status">
|
|
|
<el-select v-model="form.status" clearable filterable placeholder="请选择订单状态" size="small" style="width: 100%">
|
|
|
<el-option v-for="i in order_processList" :key="i.label" :label="i.label" :value="i.value"> </el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="onSubmit()">保存</el-button>
|
|
|
</el-form-item>
|
|
@@ -269,6 +249,23 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleSelect(value) {},
|
|
|
+ // 修改状态
|
|
|
+ async toStatus(val) {
|
|
|
+ this.$confirm('是否确认修改订单状态', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(async () => {
|
|
|
+ let form = this.form;
|
|
|
+ form.status = val;
|
|
|
+ let res;
|
|
|
+ if (form.id) res = await this.update(form);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({ type: `success`, message: `维护信息成功` });
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 提交
|
|
|
async onSubmit() {
|
|
|
let form = this.form;
|
|
@@ -282,7 +279,7 @@ export default {
|
|
|
if (form.id) res = await this.update(form);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$message({ type: `success`, message: `维护信息成功` });
|
|
|
- this.toBack();
|
|
|
+ this.search();
|
|
|
}
|
|
|
},
|
|
|
// 返回
|