md
This commit is contained in:
parent
a1ca4e4418
commit
f00e51d012
@ -15,7 +15,7 @@
|
||||
</el-col> -->
|
||||
<el-col :span="24">
|
||||
<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">
|
||||
<EmisSiteSimplePicker v-model="form.useSiteCode" :placeholder="$t('使用网点')" siteType="2" isInitiated="true" :disabled="false" ></EmisSiteSimplePicker>
|
||||
</div>
|
||||
@ -271,10 +271,10 @@ export default {
|
||||
{ required: true, message: "报价名称不能为空", trigger: "blur" }
|
||||
],
|
||||
useSiteCode: [
|
||||
{ required: true, message: "使用站点不能为空", trigger: "blur" }
|
||||
{ required: true, message: "使用站点不能为空", trigger: ["blur",'change'] }
|
||||
],
|
||||
transLineCode: [
|
||||
{ required: true, message: "线路不能为空", trigger: "blur" }
|
||||
{ required: true, message: "线路不能为空", trigger: ["blur",'change'] }
|
||||
],
|
||||
prodCode: [
|
||||
{ required: true, message: "产品不能为空", trigger: "blur" }
|
||||
@ -362,6 +362,7 @@ export default {
|
||||
|
||||
if(this.isCopy){
|
||||
this.form.quoteName=this.form.quoteName+"_Copy"
|
||||
this.form.transLineCode=response.data.transLineCode;
|
||||
}
|
||||
|
||||
this.loading = false;
|
||||
|
||||
@ -276,6 +276,7 @@ export default {
|
||||
// 总条数
|
||||
total: 0,
|
||||
currentId:null,
|
||||
currentQuote:null,
|
||||
// 费用报价表格数据
|
||||
emisQuotePriceList: [],
|
||||
// 弹出层标题
|
||||
@ -384,12 +385,13 @@ export default {
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.quoteId)
|
||||
let [lastObj]=selection.slice(-1);
|
||||
this.currentQuote=lastObj;
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
handleSelectionSiteChange(selection) {
|
||||
this.ids = selection.map(item => item.baseSiteId)
|
||||
console.log(this.ids);
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
@ -414,11 +416,12 @@ export default {
|
||||
this.isCopy = false;
|
||||
this.titleForm = "修改干线运输费";
|
||||
},
|
||||
handleCopy(row) {
|
||||
this.currentId = row.quoteId || this.ids;
|
||||
handleCopy() {
|
||||
// console.log(this.currentQuote);
|
||||
this.currentId = this.currentQuote.quoteId ;
|
||||
this.openForm = true;
|
||||
this.isCopy = true;
|
||||
this.titleForm = "修改干线运输费";
|
||||
this.titleForm = "复制干线运输费【"+this.currentQuote.quoteName+"】";
|
||||
},
|
||||
handleFormChanged(){
|
||||
this.openForm = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user