合同邮寄编辑bug

This commit is contained in:
姚亚男
2021-09-16 15:12:16 +08:00
parent 8de2a1347d
commit 794d09e528
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -84,7 +84,7 @@
<a-button type="primary" :disabled="record.sendMethod === 1 ? false : true">打印</a-button>
</span>
<span slot="action" slot-scope="text, record" class="action-span-cell">
<a @click="handleAdd" v-if="record.postStatus === 0">邮寄</a>
<a @click="handleAdd(record.id)" v-if="record.postStatus === 0">邮寄</a>
<a @click="handleEdit(record)" v-if="record.postStatus === 1">修改</a>
<a @click="goLogistics(record)" v-if="record.postStatus === 1">查看物流</a>
</span>
@@ -199,8 +199,8 @@ export default {
const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng'
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
},
handleAdd: function () {
this.$refs.modalForm.add()
handleAdd: function (id) {
this.$refs.modalForm.add(id)
this.$refs.modalForm.title = '邮寄'
this.$refs.modalForm.disableSubmit = false
},
+3 -3
View File
@@ -68,7 +68,7 @@
<a-button type="primary" :disabled="record.sendMethod === '1' ? false : true">打印</a-button>
</span>
<span slot="action" slot-scope="text, record" class="action-span-cell">
<a @click="handleAdd" v-if="record.postStatus === '0'">邮寄</a>
<a @click="handleAdd(record.id)" v-if="record.postStatus === '0'">邮寄</a>
<a @click="handleEdit(record)" v-if="record.postStatus === '1'">修改</a>
<a @click="goLogistics(record)" v-if="record.postStatus === '1'">查看物流</a>
</span>
@@ -182,8 +182,8 @@ export default {
const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng'
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
},
handleAdd: function () {
this.$refs.modalForm.add()
handleAdd: function (id) {
this.$refs.modalForm.add(id)
this.$refs.modalForm.title = '邮寄'
this.$refs.modalForm.disableSubmit = false
},
@@ -108,8 +108,8 @@ export default {
}
},
methods: {
add() {
this.edit({})
add(id) {
this.edit({id})
},
edit(record) {
this.form.resetFields()
@@ -109,8 +109,8 @@ export default {
}
},
methods: {
add() {
this.edit({})
add(id) {
this.edit({id})
},
edit(record) {
this.form.resetFields()