|
@@ -11,10 +11,10 @@
|
|
|
<el-button
|
|
|
v-if="detailData.seeDisabled"
|
|
|
size="small"
|
|
|
- @click="detailData.seeDisabled = false"
|
|
|
+ @click="editHandle"
|
|
|
type="primary"
|
|
|
style="margin-right: 8px"
|
|
|
- >编辑</el-button>
|
|
|
+ >编 辑</el-button>
|
|
|
<el-dropdown style="margin-right: 8px;">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -127,7 +127,7 @@
|
|
|
<el-select v-else-if="item.prop === 'paymentType'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled || browse">
|
|
|
<el-option v-for="(item,index) in paymentOption" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
- <el-select v-else-if="item.prop === 'packageRemarks'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled || browse">
|
|
|
+ <el-select v-else-if="item.prop === 'packageRemarks'" v-model="form[item.prop]" placeholder="请选择" clearable filterable allow-create default-first-option style="width: 100%" size="small" :disabled="detailData.seeDisabled || browse">
|
|
|
<el-option v-for="(item,index) in packageOptions" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
<el-select v-else-if="item.prop === 'arrivalAddress'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled || browse" allow-create default-first-option>
|
|
@@ -2165,7 +2165,6 @@ export default {
|
|
|
choice(row) {
|
|
|
this.dialogCost = !this.dialogCost
|
|
|
this.choiceData = true
|
|
|
- console.log(row)
|
|
|
this.choiceIndex = row.$index
|
|
|
},
|
|
|
// 去重
|
|
@@ -2251,7 +2250,6 @@ export default {
|
|
|
commodityChoice(row) {
|
|
|
this.dialogVisible = !this.dialogVisible
|
|
|
this.commodityData = true
|
|
|
- console.log(row)
|
|
|
this.choiceIndexT = row.$index
|
|
|
},
|
|
|
//导入商品触发
|
|
@@ -2893,8 +2891,11 @@ export default {
|
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
|
}
|
|
|
this.form.billType = 'XS'
|
|
|
+ // 如果有id解锁,没有跳过
|
|
|
+ this.form.id && this.unLock({moduleName: 'xs',tableName: 'business_order', billId: this.form.id})
|
|
|
this.saveLoading = true
|
|
|
typeSave(this.form).then(res => {
|
|
|
+ this.detailData.seeDisabled = true;
|
|
|
this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
|
|
|
if (isBack) {
|
|
|
//成功关闭此页面回到列表页
|
|
@@ -3015,6 +3016,7 @@ export default {
|
|
|
let getGoodsList = []
|
|
|
let getGiftList = []
|
|
|
let getFeeList = this.$refs.feeInfo.submitData()
|
|
|
+ debugger
|
|
|
if (this.goodsActives == 'gift') {
|
|
|
getGiftList = this.goodsShowData
|
|
|
getGoodsList = this.contactsData
|
|
@@ -3317,6 +3319,25 @@ export default {
|
|
|
(val == 1) && (row.price = 0)
|
|
|
this.priceChange(row)
|
|
|
},
|
|
|
+ editHandle() {
|
|
|
+ const data = {
|
|
|
+ moduleName: 'xs',
|
|
|
+ tableName: 'business_order',
|
|
|
+ billId: this.form.id,
|
|
|
+ no: 87654567
|
|
|
+ }
|
|
|
+ this.saveLoading = true
|
|
|
+ this.checkLock(data).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ this.onLock(data).then(response => {
|
|
|
+ })
|
|
|
+ this.detailData.seeDisabled = false;
|
|
|
+ }
|
|
|
+ }).catch(error => {
|
|
|
+ }).finally(() => {
|
|
|
+ this.saveLoading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|