|
@@ -306,11 +306,20 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
- <el-form-item label="物流状态" prop="deliveryStatus" v-if="editForm.oldDeliveryStatus==='4'">
|
|
|
|
|
- <el-select style="width:220px" v-model="editForm.deliveryStatus" placeholder="请选择物流状态" clearable size="small" >
|
|
|
|
|
|
|
+ <el-form-item label="物流状态" prop="deliveryStatus" >
|
|
|
|
|
+
|
|
|
|
|
+ <el-select style="width:200px" v-model="editForm.deliveryStatus" placeholder="请选择物流状态" clearable size="small" >
|
|
|
|
|
+ <!-- 添加一个空选项,用于显示空值 -->
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-if="editForm.deliveryStatus===''"
|
|
|
|
|
+ :key="''"
|
|
|
|
|
+ :label="''"
|
|
|
|
|
+ :value="editForm.deliveryStatus"
|
|
|
|
|
+ style="display: none;"
|
|
|
|
|
+ />
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in deliveryStatusOptions"
|
|
v-for="item in deliveryStatusOptions"
|
|
|
- :key="item.dictValue" :disabled="!(item.dictValue==='5' || item.dictValue===editForm.oldDeliveryStatus+'')"
|
|
|
|
|
|
|
+ :key="item.dictValue"
|
|
|
:label="item.dictLabel"
|
|
:label="item.dictLabel"
|
|
|
:value="item.dictValue"
|
|
:value="item.dictValue"
|
|
|
/>
|
|
/>
|
|
@@ -872,6 +881,9 @@ export default {
|
|
|
submitEditForm(){
|
|
submitEditForm(){
|
|
|
this.$refs["editForm"].validate(valid => {
|
|
this.$refs["editForm"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
+ if ((this.editForm.deliveryStatus===0||this.editForm.deliveryStatus==='0') && (this.editForm.oldDeliveryStatus===null||this.editForm.oldDeliveryStatus===''||this.editForm.oldDeliveryStatus==='null'||this.editForm.oldDeliveryStatus===0||this.editForm.oldDeliveryStatus==='0') ){
|
|
|
|
|
+ this.editForm.deliveryStatus=this.editForm.oldDeliveryStatus
|
|
|
|
|
+ }
|
|
|
updateStoreOrder(this.editForm).then(response => {
|
|
updateStoreOrder(this.editForm).then(response => {
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("操作成功");
|
|
this.msgSuccess("操作成功");
|
|
@@ -889,8 +901,8 @@ export default {
|
|
|
this.editForm.mark=this.order.mark
|
|
this.editForm.mark=this.order.mark
|
|
|
this.editForm.id=this.order.id;
|
|
this.editForm.id=this.order.id;
|
|
|
this.editForm.userPhone=null;
|
|
this.editForm.userPhone=null;
|
|
|
- this.editForm.deliveryStatus=this.order.deliveryStatus+'';
|
|
|
|
|
- this.editForm.oldDeliveryStatus=this.order.deliveryStatus+''
|
|
|
|
|
|
|
+ this.editForm.deliveryStatus=this.order.deliveryStatus===null?'0':this.order.deliveryStatus+'';
|
|
|
|
|
+ this.editForm.oldDeliveryStatus=this.order.deliveryStatus
|
|
|
if(this.order.orderType!=null){
|
|
if(this.order.orderType!=null){
|
|
|
this.editForm.orderType=this.order.orderType.toString();
|
|
this.editForm.orderType=this.order.orderType.toString();
|
|
|
}
|
|
}
|