Showing
22 changed files
with
402 additions
and
318 deletions
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | }}</text></view> | 52 | }}</text></view> |
| 53 | </view> | 53 | </view> |
| 54 | 54 | ||
| 55 | - <view class="section" v-if="status === 'STANDARD'"> | 55 | + <view class="section" v-if="detail.status === 'FORMAL'"> |
| 56 | <view class="row"><text class="label">正式规范性合同</text><text class="value" style="color: #3D48A3;">{{ | 56 | <view class="row"><text class="label">正式规范性合同</text><text class="value" style="color: #3D48A3;">{{ |
| 57 | detail.standardFileName || '-' }}</text></view> | 57 | detail.standardFileName || '-' }}</text></view> |
| 58 | <view class="row"><text class="label">正式合同是否规范</text><text class="value">{{ detail.standardStandardized ? | 58 | <view class="row"><text class="label">正式合同是否规范</text><text class="value">{{ detail.standardStandardized ? |
| @@ -153,28 +153,32 @@ | @@ -153,28 +153,32 @@ | ||
| 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 155 | <view class="row row-spec"><text class="label">规格(mm)</text> | 155 | <view class="row row-spec"><text class="label">规格(mm)</text> |
| 156 | - <view class="value value-spec"> | ||
| 157 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 160 | - </view> | ||
| 161 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">-{{ item.thicknessTolNeg }} | ||
| 162 | - </view> | 156 | + <view class="value value-spec"> |
| 157 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 163 | </view> | 160 | </view> |
| 164 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | - <view v-if="item.width" class="value-spec_box"> | ||
| 167 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 168 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">-{{ item.widthTolNeg }}</view> | 161 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 169 | </view> | 162 | </view> |
| 170 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 171 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 172 | - <view v-if="item.length" class="value-spec_box"> | ||
| 173 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 174 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">-{{ item.lengthTolNeg }}</view> | 163 | + </view> |
| 164 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | + <view v-if="item.width" class="value-spec_box"> | ||
| 167 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 168 | + </view> | ||
| 169 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 170 | + </view> | ||
| 171 | + </view> | ||
| 172 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 173 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 174 | + <view v-if="item.length" class="value-spec_box"> | ||
| 175 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 176 | + </view> | ||
| 177 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 175 | </view> | 178 | </view> |
| 176 | </view> | 179 | </view> |
| 177 | </view> | 180 | </view> |
| 181 | + </view> | ||
| 178 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> | 182 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> |
| 179 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> | 183 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> |
| 180 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 184 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | }}</text></view> | 52 | }}</text></view> |
| 53 | </view> | 53 | </view> |
| 54 | 54 | ||
| 55 | - <view class="section" v-if="status === 'STANDARD'"> | 55 | + <view class="section" v-if="detail.status === 'STANDARD'"> |
| 56 | <view class="row"><text class="label">标准规范性合同</text><text class="value" style="color: #3D48A3;">{{ | 56 | <view class="row"><text class="label">标准规范性合同</text><text class="value" style="color: #3D48A3;">{{ |
| 57 | detail.standardFileName || '-' }}</text></view> | 57 | detail.standardFileName || '-' }}</text></view> |
| 58 | <view class="row"><text class="label">标准合同是否规范</text><text class="value">{{ detail.standardStandardized ? | 58 | <view class="row"><text class="label">标准合同是否规范</text><text class="value">{{ detail.standardStandardized ? |
| @@ -296,7 +296,7 @@ export default { | @@ -296,7 +296,7 @@ export default { | ||
| 296 | }) | 296 | }) |
| 297 | return | 297 | return |
| 298 | } | 298 | } |
| 299 | - if (!this.standardStandardized && this.uploadType === 'standard') { | 299 | + if (!this.standardStandardized && this.standardStandardized !== false && this.uploadType === 'standard') { |
| 300 | uni.showToast({ | 300 | uni.showToast({ |
| 301 | title: '请选择合同是否规范', | 301 | title: '请选择合同是否规范', |
| 302 | icon: 'error' | 302 | icon: 'error' |
| @@ -157,29 +157,33 @@ | @@ -157,29 +157,33 @@ | ||
| 157 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> | 157 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> |
| 158 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 158 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 159 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 159 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 160 | - <view class="row row-spec"><text class="label">规格(mm)</text> | ||
| 161 | - <view class="value value-spec"> | ||
| 162 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 163 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 164 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 165 | - </view> | ||
| 166 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg }} | ||
| 167 | - </view> | 160 | + <view class="row row-spec"><text class="label">规格(mm)</text> |
| 161 | + <view class="value value-spec"> | ||
| 162 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 163 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 164 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 168 | </view> | 165 | </view> |
| 169 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 170 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 171 | - <view v-if="item.width" class="value-spec_box"> | ||
| 172 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 173 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg }}</view> | 166 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 174 | </view> | 167 | </view> |
| 175 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 176 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 177 | - <view v-if="item.length" class="value-spec_box"> | ||
| 178 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 179 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg }}</view> | 168 | + </view> |
| 169 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 170 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 171 | + <view v-if="item.width" class="value-spec_box"> | ||
| 172 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 173 | + </view> | ||
| 174 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 175 | + </view> | ||
| 176 | + </view> | ||
| 177 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 178 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 179 | + <view v-if="item.length" class="value-spec_box"> | ||
| 180 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 181 | + </view> | ||
| 182 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 180 | </view> | 183 | </view> |
| 181 | </view> | 184 | </view> |
| 182 | </view> | 185 | </view> |
| 186 | + </view> | ||
| 183 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> | 187 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> |
| 184 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> | 188 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> |
| 185 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 189 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) |
| @@ -366,7 +366,7 @@ export default { | @@ -366,7 +366,7 @@ export default { | ||
| 366 | }) | 366 | }) |
| 367 | return | 367 | return |
| 368 | } | 368 | } |
| 369 | - if (!this.standardStandardized && this.uploadType !== 'seal') { | 369 | + if (!this.standardStandardized && this.standardStandardized !== false && this.uploadType !== 'seal') { |
| 370 | uni.showToast({ | 370 | uni.showToast({ |
| 371 | title: '请选择合同是否规范', | 371 | title: '请选择合同是否规范', |
| 372 | icon: 'error' | 372 | icon: 'error' |
| @@ -4,14 +4,9 @@ | @@ -4,14 +4,9 @@ | ||
| 4 | <view class="lock-page"> | 4 | <view class="lock-page"> |
| 5 | <view class="block" v-for="(item, idx) in items" :key="idx"> | 5 | <view class="block" v-for="(item, idx) in items" :key="idx"> |
| 6 | <view class="block-header"> | 6 | <view class="block-header"> |
| 7 | - <uni-data-checkbox | ||
| 8 | - multiple | ||
| 9 | - mode="default" | ||
| 10 | - :localdata="[{ text: '锁价', value: 'LOCKED' }]" | ||
| 11 | - :modelValue="item.locked ? ['LOCKED'] : []" | ||
| 12 | - :disabled="true" | ||
| 13 | - @change="onLockChange(idx, $event)" | ||
| 14 | - /> | 7 | + <uni-data-checkbox multiple mode="default" :localdata="[{ text: '锁价', value: 'LOCKED' }]" |
| 8 | + :modelValue="item.locked ? ['LOCKED'] : []" :disabled="true" | ||
| 9 | + @change="onLockChange(idx, $event)" /> | ||
| 15 | <view class="ops" @click="toggleItem(idx)"> | 10 | <view class="ops" @click="toggleItem(idx)"> |
| 16 | <image class="opIcon" | 11 | <image class="opIcon" |
| 17 | :src="item.collapsed ? '/static/images/up.png' : '/static/images/down.png'" /> | 12 | :src="item.collapsed ? '/static/images/up.png' : '/static/images/down.png'" /> |
| @@ -22,12 +17,14 @@ | @@ -22,12 +17,14 @@ | ||
| 22 | <uni-list v-show="item.collapsed"> | 17 | <uni-list v-show="item.collapsed"> |
| 23 | <uni-list-item title="产品名称"> | 18 | <uni-list-item title="产品名称"> |
| 24 | <template v-slot:footer> | 19 | <template v-slot:footer> |
| 25 | - <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" disabled /> | 20 | + <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" |
| 21 | + disabled /> | ||
| 26 | </template> | 22 | </template> |
| 27 | </uni-list-item> | 23 | </uni-list-item> |
| 28 | <uni-list-item title="行业"> | 24 | <uni-list-item title="行业"> |
| 29 | <template v-slot:footer> | 25 | <template v-slot:footer> |
| 30 | - <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" disabled /> | 26 | + <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" |
| 27 | + disabled /> | ||
| 31 | </template> | 28 | </template> |
| 32 | </uni-list-item> | 29 | </uni-list-item> |
| 33 | <uni-list-item title="牌号"> | 30 | <uni-list-item title="牌号"> |
| @@ -42,28 +39,39 @@ | @@ -42,28 +39,39 @@ | ||
| 42 | </uni-list-item> | 39 | </uni-list-item> |
| 43 | <uni-list-item title="规格(mm)"> | 40 | <uni-list-item title="规格(mm)"> |
| 44 | <template v-slot:footer> | 41 | <template v-slot:footer> |
| 45 | - <!-- <uni-easyinput v-model="item.specDisplay" placeholder="自动拼接规格" :clearable="false" disabled /> --> | ||
| 46 | - <view class="value value-spec"> | ||
| 47 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 48 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 49 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | 42 | + <view class="value value-spec"> |
| 43 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 44 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 45 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ | ||
| 46 | + item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos | ||
| 47 | + }} | ||
| 48 | + </view> | ||
| 49 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ | ||
| 50 | + item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg | ||
| 51 | + }} | ||
| 52 | + </view> | ||
| 53 | + </view> | ||
| 54 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 55 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 56 | + <view v-if="item.width" class="value-spec_box"> | ||
| 57 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? | ||
| 58 | + '+' + item.widthTolPos : item.widthTolPos }} | ||
| 59 | + </view> | ||
| 60 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? | ||
| 61 | + '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 62 | + </view> | ||
| 63 | + </view> | ||
| 64 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 65 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 66 | + <view v-if="item.length" class="value-spec_box"> | ||
| 67 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 | ||
| 68 | + ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 69 | + </view> | ||
| 70 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 | ||
| 71 | + ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 72 | + </view> | ||
| 73 | + </view> | ||
| 50 | </view> | 74 | </view> |
| 51 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">-{{ item.thicknessTolNeg }} | ||
| 52 | - </view> | ||
| 53 | - </view> | ||
| 54 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 55 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 56 | - <view v-if="item.width" class="value-spec_box"> | ||
| 57 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 58 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">-{{ item.widthTolNeg }}</view> | ||
| 59 | - </view> | ||
| 60 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 61 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 62 | - <view v-if="item.length" class="value-spec_box"> | ||
| 63 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 64 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">-{{ item.lengthTolNeg }}</view> | ||
| 65 | - </view> | ||
| 66 | - </view> | ||
| 67 | </template> | 75 | </template> |
| 68 | </uni-list-item> | 76 | </uni-list-item> |
| 69 | <uni-list-item title="状态"> | 77 | <uni-list-item title="状态"> |
| @@ -73,27 +81,32 @@ | @@ -73,27 +81,32 @@ | ||
| 73 | </uni-list-item> | 81 | </uni-list-item> |
| 74 | <uni-list-item title="数量"> | 82 | <uni-list-item title="数量"> |
| 75 | <template v-slot:footer> | 83 | <template v-slot:footer> |
| 76 | - <uni-easyinput v-model="item.quantity" type="number" :inputBorder="false" disabled placeholder="不可编辑" /> | 84 | + <uni-easyinput v-model="item.quantity" type="number" :inputBorder="false" disabled |
| 85 | + placeholder="不可编辑" /> | ||
| 77 | </template> | 86 | </template> |
| 78 | </uni-list-item> | 87 | </uni-list-item> |
| 79 | <uni-list-item title="单价"> | 88 | <uni-list-item title="单价"> |
| 80 | <template v-slot:footer> | 89 | <template v-slot:footer> |
| 81 | - <uni-easyinput v-model="item.unitPrice" type="number" :inputBorder="false" placeholder="请输入单价" @input="onImmediateChange(idx)" @blur="onNumberBlur(idx, 'unitPrice', 0)" /> | 90 | + <uni-easyinput v-model="item.unitPrice" type="number" :inputBorder="false" |
| 91 | + placeholder="请输入单价" @input="onImmediateChange(idx)" | ||
| 92 | + @blur="onNumberBlur(idx, 'unitPrice', 0)" /> | ||
| 82 | </template> | 93 | </template> |
| 83 | </uni-list-item> | 94 | </uni-list-item> |
| 84 | <uni-list-item title="不含税金额"> | 95 | <uni-list-item title="不含税金额"> |
| 85 | <template v-slot:footer> | 96 | <template v-slot:footer> |
| 86 | - <uni-easyinput v-model="item.amountExcludingTax" type="number" :inputBorder="false" disabled placeholder="" /> | 97 | + <uni-easyinput v-model="item.amountExcludingTax" type="number" :inputBorder="false" |
| 98 | + disabled placeholder="" /> | ||
| 87 | </template> | 99 | </template> |
| 88 | </uni-list-item> | 100 | </uni-list-item> |
| 89 | <uni-list-item title="总金额"> | 101 | <uni-list-item title="总金额"> |
| 90 | <template v-slot:footer> | 102 | <template v-slot:footer> |
| 91 | - <uni-easyinput v-model="item.totalAmount" type="number" :inputBorder="false" disabled placeholder="" /> | 103 | + <uni-easyinput v-model="item.totalAmount" type="number" :inputBorder="false" disabled |
| 104 | + placeholder="" /> | ||
| 92 | </template> | 105 | </template> |
| 93 | </uni-list-item> | 106 | </uni-list-item> |
| 94 | <uni-list-item title="发货日期"> | 107 | <uni-list-item title="发货日期"> |
| 95 | <template v-slot:footer> | 108 | <template v-slot:footer> |
| 96 | - <uni-easyinput v-model="item.deliveryDate" :inputBorder="false" disabled /> | 109 | + <uni-easyinput v-model="item.deliveryDate" :inputBorder="false" disabled /> |
| 97 | </template> | 110 | </template> |
| 98 | </uni-list-item> | 111 | </uni-list-item> |
| 99 | </uni-list> | 112 | </uni-list> |
| @@ -101,12 +114,14 @@ | @@ -101,12 +114,14 @@ | ||
| 101 | <uni-list v-show="!item.collapsed"> | 114 | <uni-list v-show="!item.collapsed"> |
| 102 | <uni-list-item title="产品名称"> | 115 | <uni-list-item title="产品名称"> |
| 103 | <template v-slot:footer> | 116 | <template v-slot:footer> |
| 104 | - <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" disabled /> | 117 | + <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" |
| 118 | + disabled /> | ||
| 105 | </template> | 119 | </template> |
| 106 | </uni-list-item> | 120 | </uni-list-item> |
| 107 | <uni-list-item title="行业"> | 121 | <uni-list-item title="行业"> |
| 108 | <template v-slot:footer> | 122 | <template v-slot:footer> |
| 109 | - <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" disabled /> | 123 | + <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" |
| 124 | + disabled /> | ||
| 110 | </template> | 125 | </template> |
| 111 | </uni-list-item> | 126 | </uni-list-item> |
| 112 | <uni-list-item title="牌号"> | 127 | <uni-list-item title="牌号"> |
| @@ -151,7 +166,7 @@ | @@ -151,7 +166,7 @@ | ||
| 151 | </view> | 166 | </view> |
| 152 | </scroll-view> | 167 | </scroll-view> |
| 153 | 168 | ||
| 154 | - | 169 | + |
| 155 | </view> | 170 | </view> |
| 156 | </template> | 171 | </template> |
| 157 | 172 | ||
| @@ -168,7 +183,7 @@ export default { | @@ -168,7 +183,7 @@ export default { | ||
| 168 | planQty: 30, | 183 | planQty: 30, |
| 169 | } | 184 | } |
| 170 | }, | 185 | }, |
| 171 | - computed: { | 186 | + computed: { |
| 172 | totalQuantity() { | 187 | totalQuantity() { |
| 173 | const qty = this.items.filter(it => it.locked).reduce((p, c) => p + this.toNumber(c.quantity), 0) | 188 | const qty = this.items.filter(it => it.locked).reduce((p, c) => p + this.toNumber(c.quantity), 0) |
| 174 | return this.round(qty, 2) | 189 | return this.round(qty, 2) |
| @@ -337,7 +352,7 @@ export default { | @@ -337,7 +352,7 @@ export default { | ||
| 337 | } | 352 | } |
| 338 | const invalid = selected.find(r => { | 353 | const invalid = selected.find(r => { |
| 339 | const p = this.toNumber(r.unitPrice) | 354 | const p = this.toNumber(r.unitPrice) |
| 340 | - return !( p > 0) | 355 | + return !(p > 0) |
| 341 | }) | 356 | }) |
| 342 | if (invalid) { | 357 | if (invalid) { |
| 343 | uni.showToast({ title: '请填写单价', icon: 'none' }) | 358 | uni.showToast({ title: '请填写单价', icon: 'none' }) |
| @@ -350,7 +365,7 @@ export default { | @@ -350,7 +365,7 @@ export default { | ||
| 350 | // totalAmountExcludingTax: this.totalAmountExcludingTax, | 365 | // totalAmountExcludingTax: this.totalAmountExcludingTax, |
| 351 | totalAmountIncludingTax: this.totalAmountIncludingTax, | 366 | totalAmountIncludingTax: this.totalAmountIncludingTax, |
| 352 | totalQuantity: this.totalQuantity, | 367 | totalQuantity: this.totalQuantity, |
| 353 | - type:'INTL_INVENTORY_AGMT', | 368 | + type: 'INTL_INVENTORY_AGMT', |
| 354 | contractDistributorLineList: selected | 369 | contractDistributorLineList: selected |
| 355 | } | 370 | } |
| 356 | 371 | ||
| @@ -365,7 +380,7 @@ export default { | @@ -365,7 +380,7 @@ export default { | ||
| 365 | uni.navigateTo({ url: '/pages/contract_foreign_stock/index' }) | 380 | uni.navigateTo({ url: '/pages/contract_foreign_stock/index' }) |
| 366 | }, 500) | 381 | }, 500) |
| 367 | }).catch((err) => { | 382 | }).catch((err) => { |
| 368 | - uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | 383 | + uni.showToast({ title: err.msg || '提交失败', icon: 'none' }) |
| 369 | }) | 384 | }) |
| 370 | } | 385 | } |
| 371 | } | 386 | } |
| @@ -424,6 +439,7 @@ export default { | @@ -424,6 +439,7 @@ export default { | ||
| 424 | width: 36rpx; | 439 | width: 36rpx; |
| 425 | height: 36rpx; | 440 | height: 36rpx; |
| 426 | } | 441 | } |
| 442 | + | ||
| 427 | .block-header ::v-deep .uni-data-checklist .checklist-text { | 443 | .block-header ::v-deep .uni-data-checklist .checklist-text { |
| 428 | font-size: 28rpx; | 444 | font-size: 28rpx; |
| 429 | margin-left: 12rpx; | 445 | margin-left: 12rpx; |
| @@ -556,6 +572,7 @@ export default { | @@ -556,6 +572,7 @@ export default { | ||
| 556 | ::v-deep .is-disabled { | 572 | ::v-deep .is-disabled { |
| 557 | background-color: transparent !important; | 573 | background-color: transparent !important; |
| 558 | } | 574 | } |
| 575 | + | ||
| 559 | // ::v-deep .uni-list-item__content-title { | 576 | // ::v-deep .uni-list-item__content-title { |
| 560 | // font-size: 28rpx; | 577 | // font-size: 28rpx; |
| 561 | // color: rgba(0, 0, 0, 0.9); | 578 | // color: rgba(0, 0, 0, 0.9); |
| @@ -721,42 +738,45 @@ export default { | @@ -721,42 +738,45 @@ export default { | ||
| 721 | background: $theme-primary; | 738 | background: $theme-primary; |
| 722 | color: #fff; | 739 | color: #fff; |
| 723 | } | 740 | } |
| 724 | - .value-spec { | 741 | + |
| 742 | +.value-spec { | ||
| 743 | + height: 48rpx; | ||
| 744 | + display: flex; | ||
| 745 | + align-items: center; | ||
| 746 | + color: #000000; | ||
| 747 | + | ||
| 748 | + // justify-content: end; | ||
| 749 | + &_box { | ||
| 750 | + position: relative; | ||
| 751 | + width: 60rpx; | ||
| 725 | height: 48rpx; | 752 | height: 48rpx; |
| 726 | - display: flex; | ||
| 727 | - align-items: center; | ||
| 728 | - color: #000000; | ||
| 729 | - // justify-content: end; | ||
| 730 | - &_box { | ||
| 731 | - position: relative; | ||
| 732 | - width: 60rpx; | ||
| 733 | - height: 48rpx; | ||
| 734 | - | ||
| 735 | - &_1 { | ||
| 736 | - font-size: 16rpx; | ||
| 737 | - position: absolute; | ||
| 738 | - top: -10rpx; | ||
| 739 | - left: 0; | ||
| 740 | - } | ||
| 741 | 753 | ||
| 742 | - &_2 { | ||
| 743 | - font-size: 16rpx; | ||
| 744 | - position: absolute; | ||
| 745 | - bottom: -10rpx; | ||
| 746 | - left: 0; | ||
| 747 | - } | 754 | + &_1 { |
| 755 | + font-size: 16rpx; | ||
| 756 | + position: absolute; | ||
| 757 | + top: -10rpx; | ||
| 758 | + left: 0; | ||
| 748 | } | 759 | } |
| 749 | 760 | ||
| 750 | - &_val { | ||
| 751 | - font-size: 28rpx; | ||
| 752 | - | ||
| 753 | - &.p12 { | ||
| 754 | - padding-right: 12rpx; | ||
| 755 | - } | 761 | + &_2 { |
| 762 | + font-size: 16rpx; | ||
| 763 | + position: absolute; | ||
| 764 | + bottom: -10rpx; | ||
| 765 | + left: 0; | ||
| 756 | } | 766 | } |
| 757 | } | 767 | } |
| 758 | - .row-spec { | ||
| 759 | - height: 60rpx; | ||
| 760 | - align-items: center; | 768 | + |
| 769 | + &_val { | ||
| 770 | + font-size: 28rpx; | ||
| 771 | + | ||
| 772 | + &.p12 { | ||
| 773 | + padding-right: 12rpx; | ||
| 761 | } | 774 | } |
| 775 | + } | ||
| 776 | +} | ||
| 777 | + | ||
| 778 | +.row-spec { | ||
| 779 | + height: 60rpx; | ||
| 780 | + align-items: center; | ||
| 781 | +} | ||
| 762 | </style> | 782 | </style> |
| @@ -159,29 +159,33 @@ | @@ -159,29 +159,33 @@ | ||
| 159 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> | 159 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> |
| 160 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 160 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 161 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 161 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 162 | - <view class="row row-spec"><text class="label">规格(mm)</text> | ||
| 163 | - <view class="value value-spec"> | ||
| 164 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 165 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 166 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 167 | - </view> | ||
| 168 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg }} | ||
| 169 | - </view> | 162 | + <view class="row row-spec"><text class="label">规格(mm)</text> |
| 163 | + <view class="value value-spec"> | ||
| 164 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 165 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 166 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 170 | </view> | 167 | </view> |
| 171 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 172 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 173 | - <view v-if="item.width" class="value-spec_box"> | ||
| 174 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 175 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg }}</view> | 168 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 176 | </view> | 169 | </view> |
| 177 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 178 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 179 | - <view v-if="item.length" class="value-spec_box"> | ||
| 180 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 181 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg }}</view> | 170 | + </view> |
| 171 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 172 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 173 | + <view v-if="item.width" class="value-spec_box"> | ||
| 174 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 175 | + </view> | ||
| 176 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 177 | + </view> | ||
| 178 | + </view> | ||
| 179 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 180 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 181 | + <view v-if="item.length" class="value-spec_box"> | ||
| 182 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 183 | + </view> | ||
| 184 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 182 | </view> | 185 | </view> |
| 183 | </view> | 186 | </view> |
| 184 | </view> | 187 | </view> |
| 188 | + </view> | ||
| 185 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> | 189 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> |
| 186 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> | 190 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> |
| 187 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 191 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) |
| @@ -385,7 +385,7 @@ export default { | @@ -385,7 +385,7 @@ export default { | ||
| 385 | }) | 385 | }) |
| 386 | return | 386 | return |
| 387 | } | 387 | } |
| 388 | - if (!this.standardStandardized && this.uploadType !== 'seal') { | 388 | + if (!this.standardStandardized && this.standardStandardized !== false && this.uploadType !== 'seal') { |
| 389 | uni.showToast({ | 389 | uni.showToast({ |
| 390 | title: '请选择合同是否规范', | 390 | title: '请选择合同是否规范', |
| 391 | icon: 'error' | 391 | icon: 'error' |
| @@ -4,13 +4,8 @@ | @@ -4,13 +4,8 @@ | ||
| 4 | <view class="lock-page"> | 4 | <view class="lock-page"> |
| 5 | <view class="block" v-for="(item, idx) in items" :key="idx"> | 5 | <view class="block" v-for="(item, idx) in items" :key="idx"> |
| 6 | <view class="block-header"> | 6 | <view class="block-header"> |
| 7 | - <uni-data-checkbox | ||
| 8 | - multiple | ||
| 9 | - mode="default" | ||
| 10 | - :localdata="[{ text: '锁规', value: 'LOCKED' }]" | ||
| 11 | - :modelValue="item.locked ? ['LOCKED'] : []" | ||
| 12 | - @change="onLockChange(idx, $event)" | ||
| 13 | - /> | 7 | + <uni-data-checkbox multiple mode="default" :localdata="[{ text: '锁规', value: 'LOCKED' }]" |
| 8 | + :modelValue="item.locked ? ['LOCKED'] : []" @change="onLockChange(idx, $event)" /> | ||
| 14 | <view class="ops" @click="toggleItem(idx)"> | 9 | <view class="ops" @click="toggleItem(idx)"> |
| 15 | <image class="opIcon" | 10 | <image class="opIcon" |
| 16 | :src="item.collapsed ? '/static/images/up.png' : '/static/images/down.png'" /> | 11 | :src="item.collapsed ? '/static/images/up.png' : '/static/images/down.png'" /> |
| @@ -21,12 +16,14 @@ | @@ -21,12 +16,14 @@ | ||
| 21 | <uni-list v-show="item.collapsed"> | 16 | <uni-list v-show="item.collapsed"> |
| 22 | <uni-list-item title="产品名称"> | 17 | <uni-list-item title="产品名称"> |
| 23 | <template v-slot:footer> | 18 | <template v-slot:footer> |
| 24 | - <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" disabled /> | 19 | + <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" |
| 20 | + disabled /> | ||
| 25 | </template> | 21 | </template> |
| 26 | </uni-list-item> | 22 | </uni-list-item> |
| 27 | <uni-list-item title="行业"> | 23 | <uni-list-item title="行业"> |
| 28 | <template v-slot:footer> | 24 | <template v-slot:footer> |
| 29 | - <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" disabled /> | 25 | + <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" |
| 26 | + disabled /> | ||
| 30 | </template> | 27 | </template> |
| 31 | </uni-list-item> | 28 | </uni-list-item> |
| 32 | <uni-list-item title="牌号"> | 29 | <uni-list-item title="牌号"> |
| @@ -41,28 +38,39 @@ | @@ -41,28 +38,39 @@ | ||
| 41 | </uni-list-item> | 38 | </uni-list-item> |
| 42 | <uni-list-item title="规格(mm)"> | 39 | <uni-list-item title="规格(mm)"> |
| 43 | <template v-slot:footer> | 40 | <template v-slot:footer> |
| 44 | - <!-- <uni-easyinput v-model="item.specDisplay" placeholder="自动拼接规格" :clearable="false" disabled /> --> | ||
| 45 | - <view class="value value-spec"> | ||
| 46 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 47 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 48 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | 41 | + <view class="value value-spec"> |
| 42 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 43 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 44 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ | ||
| 45 | + item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos | ||
| 46 | + }} | ||
| 47 | + </view> | ||
| 48 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ | ||
| 49 | + item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg | ||
| 50 | + }} | ||
| 51 | + </view> | ||
| 52 | + </view> | ||
| 53 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 54 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 55 | + <view v-if="item.width" class="value-spec_box"> | ||
| 56 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? | ||
| 57 | + '+' + item.widthTolPos : item.widthTolPos }} | ||
| 58 | + </view> | ||
| 59 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? | ||
| 60 | + '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 61 | + </view> | ||
| 62 | + </view> | ||
| 63 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 64 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 65 | + <view v-if="item.length" class="value-spec_box"> | ||
| 66 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 | ||
| 67 | + ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 68 | + </view> | ||
| 69 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 | ||
| 70 | + ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 71 | + </view> | ||
| 72 | + </view> | ||
| 49 | </view> | 73 | </view> |
| 50 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">-{{ item.thicknessTolNeg }} | ||
| 51 | - </view> | ||
| 52 | - </view> | ||
| 53 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 54 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 55 | - <view v-if="item.width" class="value-spec_box"> | ||
| 56 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 57 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">-{{ item.widthTolNeg }}</view> | ||
| 58 | - </view> | ||
| 59 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 60 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 61 | - <view v-if="item.length" class="value-spec_box"> | ||
| 62 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 63 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">-{{ item.lengthTolNeg }}</view> | ||
| 64 | - </view> | ||
| 65 | - </view> | ||
| 66 | </template> | 74 | </template> |
| 67 | </uni-list-item> | 75 | </uni-list-item> |
| 68 | <uni-list-item title="状态"> | 76 | <uni-list-item title="状态"> |
| @@ -72,12 +80,16 @@ | @@ -72,12 +80,16 @@ | ||
| 72 | </uni-list-item> | 80 | </uni-list-item> |
| 73 | <uni-list-item title="数量"> | 81 | <uni-list-item title="数量"> |
| 74 | <template v-slot:footer> | 82 | <template v-slot:footer> |
| 75 | - <uni-easyinput v-model="item.quantity" type="number" :inputBorder="false" placeholder="请输入数量" @input="onImmediateChange(idx)" @blur="onNumberBlur(idx, 'quantity', 0)" /> | 83 | + <uni-easyinput v-model="item.quantity" type="number" :inputBorder="false" |
| 84 | + placeholder="请输入数量" @input="onImmediateChange(idx)" | ||
| 85 | + @blur="onNumberBlur(idx, 'quantity', 0)" /> | ||
| 76 | </template> | 86 | </template> |
| 77 | </uni-list-item> | 87 | </uni-list-item> |
| 78 | <uni-list-item title="单价"> | 88 | <uni-list-item title="单价"> |
| 79 | <template v-slot:footer> | 89 | <template v-slot:footer> |
| 80 | - <uni-easyinput v-model="item.unitPrice" type="number" :inputBorder="false" placeholder="请输入单价" @input="onImmediateChange(idx)" @blur="onNumberBlur(idx, 'unitPrice', 0)" /> | 90 | + <uni-easyinput v-model="item.unitPrice" type="number" :inputBorder="false" |
| 91 | + placeholder="请输入单价" @input="onImmediateChange(idx)" | ||
| 92 | + @blur="onNumberBlur(idx, 'unitPrice', 0)" /> | ||
| 81 | </template> | 93 | </template> |
| 82 | </uni-list-item> | 94 | </uni-list-item> |
| 83 | <!-- <uni-list-item title="不含税金额"> | 95 | <!-- <uni-list-item title="不含税金额"> |
| @@ -87,12 +99,13 @@ | @@ -87,12 +99,13 @@ | ||
| 87 | </uni-list-item> --> | 99 | </uni-list-item> --> |
| 88 | <uni-list-item title="总金额"> | 100 | <uni-list-item title="总金额"> |
| 89 | <template v-slot:footer> | 101 | <template v-slot:footer> |
| 90 | - <uni-easyinput v-model="item.totalAmount" type="number" :inputBorder="false" disabled placeholder="" /> | 102 | + <uni-easyinput v-model="item.totalAmount" type="number" :inputBorder="false" disabled |
| 103 | + placeholder="" /> | ||
| 91 | </template> | 104 | </template> |
| 92 | </uni-list-item> | 105 | </uni-list-item> |
| 93 | <uni-list-item title="发货日期"> | 106 | <uni-list-item title="发货日期"> |
| 94 | <template v-slot:footer> | 107 | <template v-slot:footer> |
| 95 | - <uni-easyinput v-model="item.deliveryDate" :inputBorder="false" disabled /> | 108 | + <uni-easyinput v-model="item.deliveryDate" :inputBorder="false" disabled /> |
| 96 | </template> | 109 | </template> |
| 97 | </uni-list-item> | 110 | </uni-list-item> |
| 98 | </uni-list> | 111 | </uni-list> |
| @@ -100,12 +113,14 @@ | @@ -100,12 +113,14 @@ | ||
| 100 | <uni-list v-show="!item.collapsed"> | 113 | <uni-list v-show="!item.collapsed"> |
| 101 | <uni-list-item title="产品名称"> | 114 | <uni-list-item title="产品名称"> |
| 102 | <template v-slot:footer> | 115 | <template v-slot:footer> |
| 103 | - <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" disabled /> | 116 | + <uni-easyinput v-model="item.productName" placeholder="请输入产品名称" :clearable="false" |
| 117 | + disabled /> | ||
| 104 | </template> | 118 | </template> |
| 105 | </uni-list-item> | 119 | </uni-list-item> |
| 106 | <uni-list-item title="行业"> | 120 | <uni-list-item title="行业"> |
| 107 | <template v-slot:footer> | 121 | <template v-slot:footer> |
| 108 | - <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" disabled /> | 122 | + <uni-easyinput v-model="item.industry" placeholder="请输入行业" :clearable="false" |
| 123 | + disabled /> | ||
| 109 | </template> | 124 | </template> |
| 110 | </uni-list-item> | 125 | </uni-list-item> |
| 111 | <uni-list-item title="牌号"> | 126 | <uni-list-item title="牌号"> |
| @@ -166,7 +181,7 @@ export default { | @@ -166,7 +181,7 @@ export default { | ||
| 166 | planQty: 30, | 181 | planQty: 30, |
| 167 | } | 182 | } |
| 168 | }, | 183 | }, |
| 169 | - computed: { | 184 | + computed: { |
| 170 | totalQuantity() { | 185 | totalQuantity() { |
| 171 | const qty = this.items.filter(it => it.locked).reduce((p, c) => p + this.toNumber(c.quantity), 0) | 186 | const qty = this.items.filter(it => it.locked).reduce((p, c) => p + this.toNumber(c.quantity), 0) |
| 172 | return this.round(qty, 2) | 187 | return this.round(qty, 2) |
| @@ -349,7 +364,7 @@ export default { | @@ -349,7 +364,7 @@ export default { | ||
| 349 | // totalAmountExcludingTax: this.totalAmountExcludingTax, | 364 | // totalAmountExcludingTax: this.totalAmountExcludingTax, |
| 350 | totalAmountIncludingTax: this.totalAmountIncludingTax, | 365 | totalAmountIncludingTax: this.totalAmountIncludingTax, |
| 351 | totalQuantity: this.totalQuantity, | 366 | totalQuantity: this.totalQuantity, |
| 352 | - type:'INTL_OPEN_SPEC_AGMT', | 367 | + type: 'INTL_OPEN_SPEC_AGMT', |
| 353 | contractDistributorLineList: selected | 368 | contractDistributorLineList: selected |
| 354 | } | 369 | } |
| 355 | 370 | ||
| @@ -364,7 +379,7 @@ export default { | @@ -364,7 +379,7 @@ export default { | ||
| 364 | uni.navigateTo({ url: '/pages/contract_foreign_unplan/index' }) | 379 | uni.navigateTo({ url: '/pages/contract_foreign_unplan/index' }) |
| 365 | }, 500) | 380 | }, 500) |
| 366 | }).catch((err) => { | 381 | }).catch((err) => { |
| 367 | - uni.showToast({ title: err.msg ||'提交失败', icon: 'none' }) | 382 | + uni.showToast({ title: err.msg || '提交失败', icon: 'none' }) |
| 368 | }) | 383 | }) |
| 369 | } | 384 | } |
| 370 | } | 385 | } |
| @@ -423,6 +438,7 @@ export default { | @@ -423,6 +438,7 @@ export default { | ||
| 423 | width: 36rpx; | 438 | width: 36rpx; |
| 424 | height: 36rpx; | 439 | height: 36rpx; |
| 425 | } | 440 | } |
| 441 | + | ||
| 426 | .block-header ::v-deep .uni-data-checklist .checklist-text { | 442 | .block-header ::v-deep .uni-data-checklist .checklist-text { |
| 427 | font-size: 28rpx; | 443 | font-size: 28rpx; |
| 428 | margin-left: 12rpx; | 444 | margin-left: 12rpx; |
| @@ -555,6 +571,7 @@ export default { | @@ -555,6 +571,7 @@ export default { | ||
| 555 | ::v-deep .is-disabled { | 571 | ::v-deep .is-disabled { |
| 556 | background-color: transparent !important; | 572 | background-color: transparent !important; |
| 557 | } | 573 | } |
| 574 | + | ||
| 558 | // ::v-deep .uni-list-item__content-title { | 575 | // ::v-deep .uni-list-item__content-title { |
| 559 | // font-size: 28rpx; | 576 | // font-size: 28rpx; |
| 560 | // color: rgba(0, 0, 0, 0.9); | 577 | // color: rgba(0, 0, 0, 0.9); |
| @@ -720,42 +737,45 @@ export default { | @@ -720,42 +737,45 @@ export default { | ||
| 720 | background: $theme-primary; | 737 | background: $theme-primary; |
| 721 | color: #fff; | 738 | color: #fff; |
| 722 | } | 739 | } |
| 740 | + | ||
| 723 | .value-spec { | 741 | .value-spec { |
| 742 | + height: 48rpx; | ||
| 743 | + display: flex; | ||
| 744 | + align-items: center; | ||
| 745 | + color: #000000; | ||
| 746 | + | ||
| 747 | + // justify-content: end; | ||
| 748 | + &_box { | ||
| 749 | + position: relative; | ||
| 750 | + width: 60rpx; | ||
| 724 | height: 48rpx; | 751 | height: 48rpx; |
| 725 | - display: flex; | ||
| 726 | - align-items: center; | ||
| 727 | - color: #000000; | ||
| 728 | - // justify-content: end; | ||
| 729 | - &_box { | ||
| 730 | - position: relative; | ||
| 731 | - width: 60rpx; | ||
| 732 | - height: 48rpx; | ||
| 733 | - | ||
| 734 | - &_1 { | ||
| 735 | - font-size: 16rpx; | ||
| 736 | - position: absolute; | ||
| 737 | - top: -10rpx; | ||
| 738 | - left: 0; | ||
| 739 | - } | ||
| 740 | 752 | ||
| 741 | - &_2 { | ||
| 742 | - font-size: 16rpx; | ||
| 743 | - position: absolute; | ||
| 744 | - bottom: -10rpx; | ||
| 745 | - left: 0; | ||
| 746 | - } | 753 | + &_1 { |
| 754 | + font-size: 16rpx; | ||
| 755 | + position: absolute; | ||
| 756 | + top: -10rpx; | ||
| 757 | + left: 0; | ||
| 747 | } | 758 | } |
| 748 | 759 | ||
| 749 | - &_val { | ||
| 750 | - font-size: 28rpx; | ||
| 751 | - | ||
| 752 | - &.p12 { | ||
| 753 | - padding-right: 12rpx; | ||
| 754 | - } | 760 | + &_2 { |
| 761 | + font-size: 16rpx; | ||
| 762 | + position: absolute; | ||
| 763 | + bottom: -10rpx; | ||
| 764 | + left: 0; | ||
| 755 | } | 765 | } |
| 756 | } | 766 | } |
| 757 | - .row-spec { | ||
| 758 | - height: 60rpx; | ||
| 759 | - align-items: center; | 767 | + |
| 768 | + &_val { | ||
| 769 | + font-size: 28rpx; | ||
| 770 | + | ||
| 771 | + &.p12 { | ||
| 772 | + padding-right: 12rpx; | ||
| 760 | } | 773 | } |
| 774 | + } | ||
| 775 | +} | ||
| 776 | + | ||
| 777 | +.row-spec { | ||
| 778 | + height: 60rpx; | ||
| 779 | + align-items: center; | ||
| 780 | +} | ||
| 761 | </style> | 781 | </style> |
| @@ -73,8 +73,8 @@ export default { | @@ -73,8 +73,8 @@ export default { | ||
| 73 | companyName: '', | 73 | companyName: '', |
| 74 | materialTypeId: '', | 74 | materialTypeId: '', |
| 75 | materialTypeIdName: '', | 75 | materialTypeIdName: '', |
| 76 | - hasFrameworkAgreement: '', | ||
| 77 | - hasFrameworkAgreementName: '', | 76 | + hasFrameworkAgreement: true, |
| 77 | + hasFrameworkAgreementName: '是', | ||
| 78 | validityTime: '' | 78 | validityTime: '' |
| 79 | }, | 79 | }, |
| 80 | productVarietyList: [], | 80 | productVarietyList: [], |
| @@ -82,10 +82,20 @@ export default { | @@ -82,10 +82,20 @@ export default { | ||
| 82 | 82 | ||
| 83 | }, | 83 | }, |
| 84 | computed: { | 84 | computed: { |
| 85 | - | 85 | + extraCombined() { |
| 86 | + return { | ||
| 87 | + keyword: this.searchKeywordDebounced || undefined | ||
| 88 | + } | ||
| 89 | + } | ||
| 86 | }, | 90 | }, |
| 87 | watch: { | 91 | watch: { |
| 88 | - | 92 | + extraCombined: { |
| 93 | + deep: true, | ||
| 94 | + handler(v) { | ||
| 95 | + this.extraParams = v | ||
| 96 | + }, | ||
| 97 | + immediate: true | ||
| 98 | + } | ||
| 89 | }, | 99 | }, |
| 90 | created() { | 100 | created() { |
| 91 | this.getProductVariety(); | 101 | this.getProductVariety(); |
| @@ -128,7 +138,7 @@ export default { | @@ -128,7 +138,7 @@ export default { | ||
| 128 | } | 138 | } |
| 129 | // 关键字(使用去抖后的值避免频繁触发) | 139 | // 关键字(使用去抖后的值避免频繁触发) |
| 130 | if (this.searchKeywordDebounced) { | 140 | if (this.searchKeywordDebounced) { |
| 131 | - params.customerName = this.searchKeywordDebounced | 141 | + params.keyword = this.searchKeywordDebounced |
| 132 | } | 142 | } |
| 133 | return queryApi(params) | 143 | return queryApi(params) |
| 134 | .then(res => { | 144 | .then(res => { |
| @@ -285,7 +285,7 @@ export default { | @@ -285,7 +285,7 @@ export default { | ||
| 285 | }) | 285 | }) |
| 286 | return | 286 | return |
| 287 | } | 287 | } |
| 288 | - if (!this.standardStandardized) { | 288 | + if (!this.standardStandardized && this.standardStandardized !== false) { |
| 289 | uni.showToast({ | 289 | uni.showToast({ |
| 290 | title: '请选择合同是否规范', | 290 | title: '请选择合同是否规范', |
| 291 | icon: 'error' | 291 | icon: 'error' |
| @@ -181,29 +181,33 @@ | @@ -181,29 +181,33 @@ | ||
| 181 | <view class="row"><text class="label">行业</text><text class="value">{{ item.industry }}</text></view> | 181 | <view class="row"><text class="label">行业</text><text class="value">{{ item.industry }}</text></view> |
| 182 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 182 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 183 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 183 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 184 | - <view class="row row-spec"><text class="label">规格(mm)</text> | ||
| 185 | - <view class="value value-spec"> | ||
| 186 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 187 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 188 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 189 | - </view> | ||
| 190 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg }} | ||
| 191 | - </view> | 184 | + <view class="row row-spec"><text class="label">规格(mm)</text> |
| 185 | + <view class="value value-spec"> | ||
| 186 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 187 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 188 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 192 | </view> | 189 | </view> |
| 193 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 194 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 195 | - <view v-if="item.width" class="value-spec_box"> | ||
| 196 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 197 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg }}</view> | 190 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 198 | </view> | 191 | </view> |
| 199 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 200 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 201 | - <view v-if="item.length" class="value-spec_box"> | ||
| 202 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 203 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg }}</view> | 192 | + </view> |
| 193 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 194 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 195 | + <view v-if="item.width" class="value-spec_box"> | ||
| 196 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 197 | + </view> | ||
| 198 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 199 | + </view> | ||
| 200 | + </view> | ||
| 201 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 202 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 203 | + <view v-if="item.length" class="value-spec_box"> | ||
| 204 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 205 | + </view> | ||
| 206 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 204 | </view> | 207 | </view> |
| 205 | </view> | 208 | </view> |
| 206 | </view> | 209 | </view> |
| 210 | + </view> | ||
| 207 | <view class="row"><text class="label">定做物数量</text><text class="value">{{ item.productQuantity }}</text></view> | 211 | <view class="row"><text class="label">定做物数量</text><text class="value">{{ item.productQuantity }}</text></view> |
| 208 | <view class="row"><text class="label">加工费单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 212 | <view class="row"><text class="label">加工费单价</text><text class="value">{{ formatCurrency(item.unitPrice) |
| 209 | }}</text> | 213 | }}</text> |
| @@ -267,7 +267,7 @@ export default { | @@ -267,7 +267,7 @@ export default { | ||
| 267 | }) | 267 | }) |
| 268 | return | 268 | return |
| 269 | } | 269 | } |
| 270 | - if (!this.standardStandardized) { | 270 | + if (!this.standardStandardized && this.standardStandardized !== false) { |
| 271 | uni.showToast({ | 271 | uni.showToast({ |
| 272 | title: '请选择合同是否规范', | 272 | title: '请选择合同是否规范', |
| 273 | icon: 'error' | 273 | icon: 'error' |
| @@ -152,29 +152,33 @@ | @@ -152,29 +152,33 @@ | ||
| 152 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> | 152 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> |
| 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 155 | - <view class="row row-spec"><text class="label">规格(mm)</text> | ||
| 156 | - <view class="value value-spec"> | ||
| 157 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 160 | - </view> | ||
| 161 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg }} | ||
| 162 | - </view> | 155 | + <view class="row row-spec"><text class="label">规格(mm)</text> |
| 156 | + <view class="value value-spec"> | ||
| 157 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 163 | </view> | 160 | </view> |
| 164 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | - <view v-if="item.width" class="value-spec_box"> | ||
| 167 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 168 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg }}</view> | 161 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 169 | </view> | 162 | </view> |
| 170 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 171 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 172 | - <view v-if="item.length" class="value-spec_box"> | ||
| 173 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 174 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg }}</view> | 163 | + </view> |
| 164 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | + <view v-if="item.width" class="value-spec_box"> | ||
| 167 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 168 | + </view> | ||
| 169 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 170 | + </view> | ||
| 171 | + </view> | ||
| 172 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 173 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 174 | + <view v-if="item.length" class="value-spec_box"> | ||
| 175 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 176 | + </view> | ||
| 177 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 175 | </view> | 178 | </view> |
| 176 | </view> | 179 | </view> |
| 177 | </view> | 180 | </view> |
| 181 | + </view> | ||
| 178 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> | 182 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> |
| 179 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> | 183 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> |
| 180 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 184 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) |
| @@ -344,7 +344,7 @@ export default { | @@ -344,7 +344,7 @@ export default { | ||
| 344 | }) | 344 | }) |
| 345 | return | 345 | return |
| 346 | } | 346 | } |
| 347 | - if (!this.standardStandardized) { | 347 | + if (!this.standardStandardized && this.standardStandardized !== false) { |
| 348 | uni.showToast({ | 348 | uni.showToast({ |
| 349 | title: '请选择合同是否规范', | 349 | title: '请选择合同是否规范', |
| 350 | icon: 'error' | 350 | icon: 'error' |
| @@ -42,28 +42,31 @@ | @@ -42,28 +42,31 @@ | ||
| 42 | </uni-list-item> | 42 | </uni-list-item> |
| 43 | <uni-list-item title="规格(mm)"> | 43 | <uni-list-item title="规格(mm)"> |
| 44 | <template v-slot:footer> | 44 | <template v-slot:footer> |
| 45 | - <!-- <uni-easyinput v-model="item.specDisplay" placeholder="自动拼接规格" :clearable="false" disabled /> --> | ||
| 46 | - <view class="value value-spec"> | ||
| 47 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 48 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 49 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 50 | - </view> | ||
| 51 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">-{{ item.thicknessTolNeg }} | ||
| 52 | - </view> | 45 | + <view class="value value-spec"> |
| 46 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 47 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 48 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 53 | </view> | 49 | </view> |
| 54 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 55 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 56 | - <view v-if="item.width" class="value-spec_box"> | ||
| 57 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 58 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">-{{ item.widthTolNeg }}</view> | 50 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 59 | </view> | 51 | </view> |
| 60 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 61 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 62 | - <view v-if="item.length" class="value-spec_box"> | ||
| 63 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 64 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">-{{ item.lengthTolNeg }}</view> | 52 | + </view> |
| 53 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 54 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 55 | + <view v-if="item.width" class="value-spec_box"> | ||
| 56 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 57 | + </view> | ||
| 58 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 59 | + </view> | ||
| 60 | + </view> | ||
| 61 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 62 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 63 | + <view v-if="item.length" class="value-spec_box"> | ||
| 64 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 65 | + </view> | ||
| 66 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 65 | </view> | 67 | </view> |
| 66 | </view> | 68 | </view> |
| 69 | + </view> | ||
| 67 | </template> | 70 | </template> |
| 68 | </uni-list-item> | 71 | </uni-list-item> |
| 69 | <uni-list-item title="状态"> | 72 | <uni-list-item title="状态"> |
| @@ -152,29 +152,33 @@ | @@ -152,29 +152,33 @@ | ||
| 152 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> | 152 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> |
| 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 155 | - <view class="row row-spec"><text class="label">规格(mm)</text> | ||
| 156 | - <view class="value value-spec"> | ||
| 157 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 160 | - </view> | ||
| 161 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg }} | ||
| 162 | - </view> | 155 | + <view class="row row-spec"><text class="label">规格(mm)</text> |
| 156 | + <view class="value value-spec"> | ||
| 157 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 163 | </view> | 160 | </view> |
| 164 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | - <view v-if="item.width" class="value-spec_box"> | ||
| 167 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 168 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg }}</view> | 161 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 169 | </view> | 162 | </view> |
| 170 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 171 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 172 | - <view v-if="item.length" class="value-spec_box"> | ||
| 173 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 174 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg }}</view> | 163 | + </view> |
| 164 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | + <view v-if="item.width" class="value-spec_box"> | ||
| 167 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 168 | + </view> | ||
| 169 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 170 | + </view> | ||
| 171 | + </view> | ||
| 172 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 173 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 174 | + <view v-if="item.length" class="value-spec_box"> | ||
| 175 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 176 | + </view> | ||
| 177 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 175 | </view> | 178 | </view> |
| 176 | </view> | 179 | </view> |
| 177 | </view> | 180 | </view> |
| 181 | + </view> | ||
| 178 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> | 182 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> |
| 179 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> | 183 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> |
| 180 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 184 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) |
| @@ -365,7 +365,7 @@ export default { | @@ -365,7 +365,7 @@ export default { | ||
| 365 | }) | 365 | }) |
| 366 | return | 366 | return |
| 367 | } | 367 | } |
| 368 | - if (!this.standardStandardized) { | 368 | + if (!this.standardStandardized && this.standardStandardized !== false) { |
| 369 | uni.showToast({ | 369 | uni.showToast({ |
| 370 | title: '请选择合同是否规范', | 370 | title: '请选择合同是否规范', |
| 371 | icon: 'error' | 371 | icon: 'error' |
| @@ -41,28 +41,31 @@ | @@ -41,28 +41,31 @@ | ||
| 41 | </uni-list-item> | 41 | </uni-list-item> |
| 42 | <uni-list-item title="规格(mm)"> | 42 | <uni-list-item title="规格(mm)"> |
| 43 | <template v-slot:footer> | 43 | <template v-slot:footer> |
| 44 | - <!-- <uni-easyinput v-model="item.specDisplay" placeholder="自动拼接规格" :clearable="false" disabled /> --> | ||
| 45 | - <view class="value value-spec"> | ||
| 46 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 47 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 48 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 49 | - </view> | ||
| 50 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">-{{ item.thicknessTolNeg }} | ||
| 51 | - </view> | 44 | + <view class="value value-spec"> |
| 45 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 46 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 47 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 52 | </view> | 48 | </view> |
| 53 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 54 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 55 | - <view v-if="item.width" class="value-spec_box"> | ||
| 56 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 57 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">-{{ item.widthTolNeg }}</view> | 49 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 58 | </view> | 50 | </view> |
| 59 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 60 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 61 | - <view v-if="item.length" class="value-spec_box"> | ||
| 62 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 63 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">-{{ item.lengthTolNeg }}</view> | 51 | + </view> |
| 52 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 53 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 54 | + <view v-if="item.width" class="value-spec_box"> | ||
| 55 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 56 | + </view> | ||
| 57 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 58 | + </view> | ||
| 59 | + </view> | ||
| 60 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 61 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 62 | + <view v-if="item.length" class="value-spec_box"> | ||
| 63 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 64 | + </view> | ||
| 65 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 64 | </view> | 66 | </view> |
| 65 | </view> | 67 | </view> |
| 68 | + </view> | ||
| 66 | </template> | 69 | </template> |
| 67 | </uni-list-item> | 70 | </uni-list-item> |
| 68 | <uni-list-item title="状态"> | 71 | <uni-list-item title="状态"> |
| @@ -152,29 +152,33 @@ | @@ -152,29 +152,33 @@ | ||
| 152 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> | 152 | <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view> |
| 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> | 153 | <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view> |
| 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> | 154 | <!-- 厚(公差) * 宽(公差) * 长(公差) --> |
| 155 | - <view class="row row-spec"><text class="label">规格(mm)</text> | ||
| 156 | - <view class="value value-spec"> | ||
| 157 | - <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | - <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | - <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }} | ||
| 160 | - </view> | ||
| 161 | - <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg }} | ||
| 162 | - </view> | 155 | + <view class="row row-spec"><text class="label">规格(mm)</text> |
| 156 | + <view class="value value-spec"> | ||
| 157 | + <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view> | ||
| 158 | + <view v-if="item.thickness" class="value-spec_box"> | ||
| 159 | + <view v-if="item.thicknessTolPos" class="value-spec_box_1">{{ item.thicknessTolPos > 0 ? '+' + item.thicknessTolPos : item.thicknessTolPos }} | ||
| 163 | </view> | 160 | </view> |
| 164 | - <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | - <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | - <view v-if="item.width" class="value-spec_box"> | ||
| 167 | - <view v-if="item.widthTolPos" class="value-spec_box_1">+{{ item.widthTolPos }}</view> | ||
| 168 | - <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg }}</view> | 161 | + <view v-if="item.thicknessTolNeg" class="value-spec_box_2">{{ item.thicknessTolNeg > 0 ? '+' + item.thicknessTolNeg : item.thicknessTolNeg }} |
| 169 | </view> | 162 | </view> |
| 170 | - <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 171 | - <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 172 | - <view v-if="item.length" class="value-spec_box"> | ||
| 173 | - <view v-if="item.lengthTolPos" class="value-spec_box_1">+{{ item.lengthTolPos }}</view> | ||
| 174 | - <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg }}</view> | 163 | + </view> |
| 164 | + <view v-if="item.width" class="value-spec_val p12">*</view> | ||
| 165 | + <view v-if="item.width" class="value-spec_val">{{ item.width }}</view> | ||
| 166 | + <view v-if="item.width" class="value-spec_box"> | ||
| 167 | + <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }} | ||
| 168 | + </view> | ||
| 169 | + <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }} | ||
| 170 | + </view> | ||
| 171 | + </view> | ||
| 172 | + <view v-if="item.length" class="value-spec_val p12">*</view> | ||
| 173 | + <view v-if="item.length" class="value-spec_val">{{ item.length }}</view> | ||
| 174 | + <view v-if="item.length" class="value-spec_box"> | ||
| 175 | + <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }} | ||
| 176 | + </view> | ||
| 177 | + <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }} | ||
| 175 | </view> | 178 | </view> |
| 176 | </view> | 179 | </view> |
| 177 | </view> | 180 | </view> |
| 181 | + </view> | ||
| 178 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> | 182 | <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view> |
| 179 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> | 183 | <view class="row"><text class="label">数量</text><text class="value">{{ item.quantity }}</text></view> |
| 180 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) | 184 | <view class="row"><text class="label">单价</text><text class="value">{{ formatCurrency(item.unitPrice) |