This commit is contained in:
linfso 2024-05-11 11:49:37 +08:00
parent a1ca4e4418
commit f00e51d012
2 changed files with 11 additions and 7 deletions

View File

@ -15,7 +15,7 @@
</el-col> --> </el-col> -->
<el-col :span="24"> <el-col :span="24">
<el-form-item label="使用网点" prop="useSiteCode"> <el-form-item label="使用网点" prop="useSiteCode">
<EmisSiteSimplePicker v-model="form.useSiteCode" :placeholder="$t('使用网点')" siteType="2" isInitiated="true" @onChange="onUseSiteChange"></EmisSiteSimplePicker> <EmisSiteSimplePicker v-model="form.useSiteCode" :placeholder="$t('使用网点')" isInitiated="true" @onChange="onUseSiteChange"></EmisSiteSimplePicker>
<!-- <div v-if="ownerSiteCode == 88888"> <!-- <div v-if="ownerSiteCode == 88888">
<EmisSiteSimplePicker v-model="form.useSiteCode" :placeholder="$t('使用网点')" siteType="2" isInitiated="true" :disabled="false" ></EmisSiteSimplePicker> <EmisSiteSimplePicker v-model="form.useSiteCode" :placeholder="$t('使用网点')" siteType="2" isInitiated="true" :disabled="false" ></EmisSiteSimplePicker>
</div> </div>
@ -271,10 +271,10 @@ export default {
{ required: true, message: "报价名称不能为空", trigger: "blur" } { required: true, message: "报价名称不能为空", trigger: "blur" }
], ],
useSiteCode: [ useSiteCode: [
{ required: true, message: "使用站点不能为空", trigger: "blur" } { required: true, message: "使用站点不能为空", trigger: ["blur",'change'] }
], ],
transLineCode: [ transLineCode: [
{ required: true, message: "线路不能为空", trigger: "blur" } { required: true, message: "线路不能为空", trigger: ["blur",'change'] }
], ],
prodCode: [ prodCode: [
{ required: true, message: "产品不能为空", trigger: "blur" } { required: true, message: "产品不能为空", trigger: "blur" }
@ -362,6 +362,7 @@ export default {
if(this.isCopy){ if(this.isCopy){
this.form.quoteName=this.form.quoteName+"_Copy" this.form.quoteName=this.form.quoteName+"_Copy"
this.form.transLineCode=response.data.transLineCode;
} }
this.loading = false; this.loading = false;

View File

@ -276,6 +276,7 @@ export default {
// 总条数 // 总条数
total: 0, total: 0,
currentId:null, currentId:null,
currentQuote:null,
// 费用报价表格数据 // 费用报价表格数据
emisQuotePriceList: [], emisQuotePriceList: [],
// 弹出层标题 // 弹出层标题
@ -384,12 +385,13 @@ export default {
// 多选框选中数据 // 多选框选中数据
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.quoteId) this.ids = selection.map(item => item.quoteId)
let [lastObj]=selection.slice(-1);
this.currentQuote=lastObj;
this.single = selection.length!==1 this.single = selection.length!==1
this.multiple = !selection.length this.multiple = !selection.length
}, },
handleSelectionSiteChange(selection) { handleSelectionSiteChange(selection) {
this.ids = selection.map(item => item.baseSiteId) this.ids = selection.map(item => item.baseSiteId)
console.log(this.ids);
this.single = selection.length!==1 this.single = selection.length!==1
this.multiple = !selection.length this.multiple = !selection.length
}, },
@ -414,11 +416,12 @@ export default {
this.isCopy = false; this.isCopy = false;
this.titleForm = "修改干线运输费"; this.titleForm = "修改干线运输费";
}, },
handleCopy(row) { handleCopy() {
this.currentId = row.quoteId || this.ids; // console.log(this.currentQuote);
this.currentId = this.currentQuote.quoteId ;
this.openForm = true; this.openForm = true;
this.isCopy = true; this.isCopy = true;
this.titleForm = "修改干线运输费"; this.titleForm = "复制干线运输费【"+this.currentQuote.quoteName+"】";
}, },
handleFormChanged(){ handleFormChanged(){
this.openForm = false; this.openForm = false;