|
|
@@ -49,7 +49,7 @@
|
|
|
<tempalte slot="stationCname">
|
|
|
<dic-select v-model="form.stationCname" placeholder="场站" :key="updateFormKey" label="cnName"
|
|
|
res="records"
|
|
|
- :url="'/blade-los/bcorps/selectList?corpTypeName=场站&ids=' + (form.cyText ? form.cyText : '')"
|
|
|
+ :url="'/blade-los/bcorps/selectList?corpTypeName=场站&status=0&ids=' + (form.cyText ? form.cyText : '')"
|
|
|
:filterable="true" :remote="true" dataName="cnName" @selectChange="dicChange('stationCname', $event)"
|
|
|
:disabled="editDisabled || !form.addressId" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
</tempalte>
|
|
|
@@ -108,9 +108,9 @@
|
|
|
</tempalte>
|
|
|
<tempalte slot="stationCnameForm" slot-scope="{ row }">
|
|
|
<dic-select v-if="row.$cellEdit" v-model="row.stationCname" placeholder="场站" key="id" label="cnName"
|
|
|
- res="records" url="/blade-los/bcorps/selectList?corpTypeName=场站" :filterable="true" :remote="true"
|
|
|
- dataName="cnName" @selectChange="rowDicChange('stationCname', $event, row)" :slotRight="true"
|
|
|
- rightLabel="code"></dic-select>
|
|
|
+ res="records" url="/blade-los/bcorps/selectList?corpTypeName=场站&status=0" :filterable="true"
|
|
|
+ :remote="true" dataName="cnName" @selectChange="rowDicChange('stationCname', $event, row)"
|
|
|
+ :slotRight="true" rightLabel="code"></dic-select>
|
|
|
<span v-else>{{ row.stationCname }}</span>
|
|
|
</tempalte>
|
|
|
<tempalte slot="restrictedPortsNameForm" slot-scope="{ row }">
|
|
|
@@ -257,7 +257,7 @@
|
|
|
<tempalte slot="polStationCname">
|
|
|
<dic-select v-model="activationForm.polStationCname" placeholder="场站" :key="updateStationKey" label="cnName"
|
|
|
res="records" :slotRight="true" rightLabel="code"
|
|
|
- :url="'/blade-los/bcorps/selectList?corpTypeName=场站&ids=' + (form.cyTextOne ? form.cyTextOne : '')"
|
|
|
+ :url="'/blade-los/bcorps/selectList?corpTypeName=场站&status=0&ids=' + (form.cyTextOne ? form.cyTextOne : '')"
|
|
|
:filterable="true" :remote="true" dataName="cnName" @selectChange="dicChange('polStationCname', $event)"
|
|
|
:disabled="editDisabled || !activationForm.polCname"></dic-select>
|
|
|
</tempalte>
|
|
|
@@ -644,19 +644,19 @@ export default {
|
|
|
label: '箱属',
|
|
|
prop: 'boxBelongsTo',
|
|
|
overHidden: true,
|
|
|
- cell: true,
|
|
|
- width: 100,
|
|
|
- type: 'select',
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxBelongsTo",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictValue"
|
|
|
- },
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请选择箱属",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
+ // cell: true,
|
|
|
+ // width: 100,
|
|
|
+ // type: 'select',
|
|
|
+ // dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxBelongsTo",
|
|
|
+ // props: {
|
|
|
+ // label: "dictValue",
|
|
|
+ // value: "dictValue"
|
|
|
+ // },
|
|
|
+ // rules: [{
|
|
|
+ // required: true,
|
|
|
+ // message: "请选择箱属",
|
|
|
+ // trigger: "blur"
|
|
|
+ // }]
|
|
|
},
|
|
|
{
|
|
|
label: '放箱号类型',
|
|
|
@@ -1557,7 +1557,7 @@ export default {
|
|
|
return this.$message.error("请添加数据");
|
|
|
}
|
|
|
for (let row of this.form.tradingBoxItemsList) {
|
|
|
- if (!row.code || !row.boxType || !row.boxBelongsTo || !row.boxCategory || !row.boxStatus || !row.boxCondition || !row.amount || !row.currency || !row.exrate || !row.stationCname || !row.status) {
|
|
|
+ if (!row.code || !row.boxType || !row.boxCategory || !row.boxStatus || !row.boxCondition || !row.amount || !row.currency || !row.exrate || !row.stationCname || !row.status) {
|
|
|
this.$refs.crud.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善明细信息");
|
|
|
}
|
|
|
@@ -1723,7 +1723,7 @@ export default {
|
|
|
done();
|
|
|
if (valid) {
|
|
|
for (let row of this.form.tradingBoxItemsList) {
|
|
|
- if (!row.code || !row.boxType || !row.boxBelongsTo || !row.boxCategory || !row.boxStatus || !row.boxCondition || !row.amount || !row.currency || !row.exrate || !row.stationCname || !row.status) {
|
|
|
+ if (!row.code || !row.boxType || !row.boxCategory || !row.boxStatus || !row.boxCondition || !row.amount || !row.currency || !row.exrate || !row.stationCname || !row.status) {
|
|
|
this.$refs.crud.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善明细信息");
|
|
|
}
|
|
|
@@ -1843,7 +1843,25 @@ export default {
|
|
|
goBack(type) {
|
|
|
this.$emit("goBack");
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
+ // watch: {
|
|
|
+ // // 监听业务类型 如果不是分单 可以编辑分单号
|
|
|
+ // 'form.tradingBoxItemsList': {
|
|
|
+ // // 执行方法
|
|
|
+ // handler(oldValue, newValue) {
|
|
|
+ // if (this.form.tradingBoxItemsList) {
|
|
|
+ // this.optionForm.forEach(item => {
|
|
|
+ // if (item.prop=='purchaseCompanyName'||item.prop=='contractNo') {
|
|
|
+
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+
|
|
|
+ // },
|
|
|
+ // deep: true, // 深度监听
|
|
|
+ // immediate: true // 第一次改变就执行
|
|
|
+ // },
|
|
|
+ // }
|
|
|
}
|
|
|
</script>
|
|
|
|