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