查看物流

This commit is contained in:
姚亚男
2021-09-16 11:21:14 +08:00
parent c3f3693d97
commit c34779e717
2 changed files with 15 additions and 13 deletions
+7 -6
View File
@@ -14,7 +14,7 @@
</a-col>
<a-col :xl="7" :lg="8" :md="8" :sm="24">
<a-form-item label="项目负责人">
<select-principal v-model="queryParam.pricipalId" placeholder="请选择项目负责人"></select-principal>
<select-principal v-model="queryParam.principalId" placeholder="请选择项目负责人"></select-principal>
</a-form-item>
</a-col>
<a-col :xl="7" :lg="8" :md="8" :sm="24">
@@ -81,12 +81,12 @@
</template>
<span slot="print" slot-scope="text, record" class="action-span-cell">
<a-button type="primary" :disabled="record.sendMethod === 1 ? true : false">打印</a-button>
<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="handleEdit(record)" v-if="record.postStatus === 1">修改</a>
<a @click="goLogistics(record.id)" v-if="record.postStatus === 1">查看物流</a>
<a @click="goLogistics(record)" v-if="record.postStatus === 1">查看物流</a>
</span>
</a-table>
</div>
@@ -151,7 +151,7 @@ export default {
{
title: '项目负责人',
align: 'center',
dataIndex: 'pricipalName',
dataIndex: 'principalName',
},
{
title: '来款单位',
@@ -195,8 +195,9 @@ export default {
},
methods: {
// 查看物流
goLogistics(id) {
goLogistics(recor
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()
+8 -7
View File
@@ -24,7 +24,7 @@
</a-col>
<a-col :xl="5" :lg="8" :md="8" :sm="24">
<a-form-item label="负责人">
<select-principal v-model="queryParam.pricipalId" placeholder="请选择负责人"></select-principal>
<select-principal v-model="queryParam.principalId" placeholder="请选择负责人"></select-principal>
</a-form-item>
</a-col>
<a-col :xl="4" :lg="7" :md="8" :sm="24">
@@ -65,12 +65,12 @@
</template>
<span slot="print" slot-scope="text, record" class="action-span-cell">
<a-button type="primary" :disabled="record.sendMethod === 1 ? true : false">打印</a-button>
<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="handleEdit(record)" v-if="record.postStatus !== '0'">修改</a>
<a @click="goLogistics(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>
</a-table>
</div>
@@ -134,7 +134,7 @@ export default {
{
title: '负责人',
align: 'center',
dataIndex: 'pricipalName',
dataIndex: 'principalName',
},
{
title: '合同总金额',
@@ -178,8 +178,9 @@ export default {
},
methods: {
// 查看物流
goLogistics(id) {
goLogistics(record) {
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()