Commit 63624c01170e302efd9a7a355c01fea3bd16b12b

Authored by gesilong
2 parents 7d25c912 2e805135

Merge branch 'cjerp-3.0-fix' into test_cjerp

@@ -4,8 +4,8 @@ module.exports = { @@ -4,8 +4,8 @@ module.exports = {
4 themeColor: '#3d48a3', 4 themeColor: '#3d48a3',
5 5
6 // baseUrl: 'http://ft.wecando21cn.com/api', 6 // baseUrl: 'http://ft.wecando21cn.com/api',
7 - // baseUrl: 'http://gjtd.ahcjxc.com:81/api',  
8 - baseUrl: 'http://erp.qgutech.com/api', 7 + baseUrl: 'http://gjtd.ahcjxc.com:81/api',
  8 + // baseUrl: 'http://erp.qgutech.com/api',
9 // baseUrl: 'http://10.9.5.246:8081', 9 // baseUrl: 'http://10.9.5.246:8081',
10 // 应用信息 10 // 应用信息
11 appInfo: { 11 appInfo: {
@@ -140,7 +140,7 @@ @@ -140,7 +140,7 @@
140 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 140 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
141 </template> 141 </template>
142 </uni-list-item> 142 </uni-list-item>
143 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 143 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
144 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 144 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
145 <template v-slot:body> 145 <template v-slot:body>
146 <view class="item-title"><text>历史备注</text></view> 146 <view class="item-title"><text>历史备注</text></view>
@@ -143,7 +143,7 @@ @@ -143,7 +143,7 @@
143 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 143 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
144 </template> 144 </template>
145 </uni-list-item> 145 </uni-list-item>
146 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 146 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
147 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 147 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
148 <template v-slot:body> 148 <template v-slot:body>
149 <view class="item-title"><text>历史备注</text></view> 149 <view class="item-title"><text>历史备注</text></view>
@@ -141,7 +141,7 @@ @@ -141,7 +141,7 @@
141 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 141 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
142 </template> 142 </template>
143 </uni-list-item> 143 </uni-list-item>
144 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 144 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
145 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 145 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
146 <template v-slot:body> 146 <template v-slot:body>
147 <view class="item-title"><text>历史备注</text></view> 147 <view class="item-title"><text>历史备注</text></view>
@@ -143,7 +143,7 @@ @@ -143,7 +143,7 @@
143 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 143 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
144 </template> 144 </template>
145 </uni-list-item> 145 </uni-list-item>
146 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 146 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
147 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 147 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
148 <template v-slot:body> 148 <template v-slot:body>
149 <view class="item-title"><text>历史备注</text></view> 149 <view class="item-title"><text>历史备注</text></view>
@@ -139,7 +139,7 @@ @@ -139,7 +139,7 @@
139 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 139 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
140 </template> 140 </template>
141 </uni-list-item> 141 </uni-list-item>
142 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 142 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
143 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 143 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
144 <template v-slot:body> 144 <template v-slot:body>
145 <view class="item-title"><text>历史备注</text></view> 145 <view class="item-title"><text>历史备注</text></view>
@@ -137,7 +137,7 @@ @@ -137,7 +137,7 @@
137 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 137 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
138 </template> 138 </template>
139 </uni-list-item> 139 </uni-list-item>
140 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 140 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
141 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 141 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
142 <template v-slot:body> 142 <template v-slot:body>
143 <view class="item-title"><text>历史备注</text></view> 143 <view class="item-title"><text>历史备注</text></view>
@@ -139,7 +139,7 @@ @@ -139,7 +139,7 @@
139 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" /> 139 <uni-easyinput v-model="form.specialInstructions" placeholder="请输入特别说明" :inputBorder="false" />
140 </template> 140 </template>
141 </uni-list-item> 141 </uni-list-item>
142 - <uni-list-item v-if="this.customerRemarks.length" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable 142 + <uni-list-item v-if="this.customerRemarks.length > 0 && !this.copyId" class="select-item" :class="defaultRemark ? 'is-filled' : 'is-empty'" clickable
143 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow> 143 @click="openSheet('historyRemarks')" :rightText="defaultRemark || '请选择'" showArrow>
144 <template v-slot:body> 144 <template v-slot:body>
145 <view class="item-title"><text>历史备注</text></view> 145 <view class="item-title"><text>历史备注</text></view>
@@ -525,16 +525,16 @@ export default { @@ -525,16 +525,16 @@ export default {
525 this.weighList = [] 525 this.weighList = []
526 return 526 return
527 } 527 }
528 - // 校验:所选计划的「是否买断、供料单位、收料单位、车间」必须一致 528 + // 校验:所选计划的「是否买断、供料单位、收料单位、分厂、采购处、区域」必须一致
529 const first = list[0] 529 const first = list[0]
530 const isSame = list.every(item => 530 const isSame = list.every(item =>
531 item.buyout === first.buyout && 531 item.buyout === first.buyout &&
532 item.supplierName === first.supplierName && 532 item.supplierName === first.supplierName &&
533 - item.companyName === first.companyName &&  
534 - item.workshopName === first.workshopName 533 + item.companyName === first.companyName && item.workshopId === first.workshopId &&
  534 + item.purchaseDepartment === first.purchaseDepartment && item.region === first.region
535 ) 535 )
536 if (!isSame) { 536 if (!isSame) {
537 - uni.showToast({ title: '是否买断,供料单位,收料单位应保持一致', icon: 'none' }) 537 + uni.showToast({ title: '是否买断,供料单位,收料单位,分厂,采购处,区域应保持一致', icon: 'none' })
538 this.planSheet.selectedKeys = this.selectedPlanRows.map(it => it.id) 538 this.planSheet.selectedKeys = this.selectedPlanRows.map(it => it.id)
539 return 539 return
540 } 540 }
@@ -576,10 +576,12 @@ export default { @@ -576,10 +576,12 @@ export default {
576 item.buyout === first.buyout && 576 item.buyout === first.buyout &&
577 item.supplierName === first.supplierName && 577 item.supplierName === first.supplierName &&
578 item.companyName === first.companyName && 578 item.companyName === first.companyName &&
579 - item.workshopName === first.workshopName 579 + item.workshopId === first.workshopId &&
  580 + item.purchaseDepartment === first.purchaseDepartment &&
  581 + item.region === first.region
580 ) 582 )
581 if (!isSame) { 583 if (!isSame) {
582 - uni.showToast({ title: '是否买断,供料单位,收料单位应保持一致', icon: 'none' }) 584 + uni.showToast({ title: '是否买断,供料单位,收料单位,分厂,采购处,区域应保持一致', icon: 'none' })
583 this.planSheet.selectedKeys = this.selectedPlanRows.map(it => it.id) 585 this.planSheet.selectedKeys = this.selectedPlanRows.map(it => it.id)
584 return 586 return
585 } 587 }