|
@@ -109,6 +109,8 @@
|
|
|
corpType="KH"
|
|
|
:disabled="detailData.seeDisabled || browse"
|
|
|
style="width: 100%"
|
|
|
+ ref="KHSelect"
|
|
|
+ :belongtocompany="form.belongToCorpId"
|
|
|
></crop-select>
|
|
|
<crop-select
|
|
|
v-else-if="item.prop === 'belongToCorpId'"
|
|
@@ -330,7 +332,9 @@
|
|
|
</template>
|
|
|
<template slot="cname" slot-scope="{ row }">
|
|
|
<goods-select v-if="row.$cellEdit" v-model="row.cname" @getRow="getGoodsRow($event, row)"
|
|
|
- :configuration="goodsConfiguration" @receiveList="receiveGoodList" @returnRow="getRow($event, row)"/>
|
|
|
+ :configuration="goodsConfiguration" @receiveList="receiveGoodList" @returnRow="getRow($event, row)"
|
|
|
+ :artsVision="form.belongToCorpId"
|
|
|
+ />
|
|
|
<span v-else>
|
|
|
{{row.cname}}
|
|
|
</span>
|
|
@@ -1269,7 +1273,7 @@ export default {
|
|
|
{
|
|
|
label: '客户全称',
|
|
|
prop: 'corpId',
|
|
|
- span: 16,
|
|
|
+ span: 8,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -1280,6 +1284,7 @@ export default {
|
|
|
}, {
|
|
|
label: '到货地址',
|
|
|
prop: 'arrivalAddress',
|
|
|
+ span:16,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -1290,7 +1295,7 @@ export default {
|
|
|
}, {
|
|
|
label: '生产工厂',
|
|
|
prop: 'productionPlant',
|
|
|
- span: 16,
|
|
|
+ span: 8,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -1303,6 +1308,7 @@ export default {
|
|
|
label: '发货地址',
|
|
|
prop: 'shippingAddress',
|
|
|
disabled: false,
|
|
|
+ span: 16,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -1313,7 +1319,7 @@ export default {
|
|
|
}, {
|
|
|
label: '所属公司',
|
|
|
prop: 'belongToCorpId',
|
|
|
- span: 16,
|
|
|
+ span: 8,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -1331,7 +1337,17 @@ export default {
|
|
|
trigger: 'change'
|
|
|
}
|
|
|
]
|
|
|
- }, {
|
|
|
+ },{
|
|
|
+ label: '包装要求',
|
|
|
+ prop: 'packageRemarks',
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: ' ',
|
|
|
+ trigger: 'change'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
label: '银行帐号',
|
|
|
prop: 'banks',
|
|
|
type: 'select',
|
|
@@ -1363,16 +1379,6 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
- label: '包装要求',
|
|
|
- prop: 'packageRemarks',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: ' ',
|
|
|
- trigger: 'change'
|
|
|
- }
|
|
|
- ]
|
|
|
- }, {
|
|
|
label: '销售订单号',
|
|
|
prop: 'orderNo',
|
|
|
disabled: true,
|
|
@@ -2713,9 +2719,9 @@ export default {
|
|
|
done()
|
|
|
},
|
|
|
//商品列表查询
|
|
|
- onLoad(page, params = {}) {
|
|
|
+ onLoad(page, params = {artsVision: this.form.belongToCorpId}) {
|
|
|
this.loading = true;
|
|
|
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId, this.form.belongToCorpId).then(res => {
|
|
|
+ getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId, null).then(res => {
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
this.pageList.total = data.total
|
|
@@ -3034,6 +3040,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
returnBack(row) {
|
|
|
+ this.$refs.KHSelect[0].updateData(row.id)
|
|
|
getKHList({corpType: 'KH', belongtocompany: row.id}).then(res => {
|
|
|
this.form.corpId = res.data.data.records.length > 0? res.data.data.records[0].id: null
|
|
|
if (this.form.corpId) {
|