feat(crm): 添加订单和合同的发货配卷查询功能
添加新的API接口和组件用于查询订单和合同下的发货配卷情况 在订单和合同详情页中新增"发货配卷"标签页展示相关数据
This commit is contained in:
@@ -246,19 +246,24 @@
|
||||
</el-table-column> -->
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="发货配卷" name="fifth">
|
||||
<CoilTable :data="coilList" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listContract, getContract, delContract, addContract, updateContract, listContractOrderObjection } from "@/api/crm/contract";
|
||||
import { listContract, getContract, delContract, addContract, updateContract, listContractOrderObjection, listContractPackaging } from "@/api/crm/contract";
|
||||
import OrderPage from "@/views/crm/order/index.vue";
|
||||
import CoilTable from "../components/CoilTable.vue";
|
||||
|
||||
export default {
|
||||
name: "Contract",
|
||||
components: {
|
||||
OrderPage,
|
||||
CoilTable,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -364,6 +369,7 @@ export default {
|
||||
],
|
||||
financeList: [],
|
||||
oobjectionList: [],
|
||||
coilList: [],
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -380,6 +386,12 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
/** 查询合同配卷列表 */
|
||||
getCoilList() {
|
||||
listContractPackaging(this.form.contractId).then(response => {
|
||||
this.coilList = response.data || [];
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
@@ -389,6 +401,7 @@ export default {
|
||||
handleRowClick(row) {
|
||||
this.form = row;
|
||||
this.dialogOpen = true;
|
||||
this.getCoilList();
|
||||
listContractOrderObjection(row.contractId).then(response => {
|
||||
this.form.financeList = response.data.financeList || [];
|
||||
this.form.oobjectionList = response.data.oobjectionList || [];
|
||||
|
||||
Reference in New Issue
Block a user