|
@@ -65,10 +65,10 @@
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
<!-- 平均公斤单价 -->
|
|
|
- <a-form-model-item label="平均公斤单价" prop="averagePrice" v-if="$hasPermissions('B_salesDetail_costPrice')&&$hasPermissions('B_salesDetail_salesPrice')">
|
|
|
+ <a-form-model-item label="平均公斤单价" prop="averagePrice" v-if="nowType=='export'&&$hasPermissions('B_salesDetail_costPrice')&&$hasPermissions('B_salesDetail_salesPrice')">
|
|
|
<a-radio-group v-model="form.averagePrice">
|
|
|
- <a-radio :value="form.dataScope == 'ENOUGH' ? 'SALES_BILL_COST_NOT_LACK_WEIGHT':'SALES_BILL_COST_WEIGHT'">导出</a-radio>
|
|
|
- <a-radio :value="form.dataScope == 'ENOUGH' ? 'SALES_BILL_NOT_LACK_WEIGHT':'SALES_BILL_WEIGHT'">不导出</a-radio>
|
|
|
+ <a-radio :value="1">导出</a-radio>
|
|
|
+ <a-radio :value="0">不导出</a-radio>
|
|
|
</a-radio-group>
|
|
|
</a-form-model-item>
|
|
|
</a-form-model>
|
|
@@ -190,12 +190,14 @@ export default {
|
|
|
if (!_this.$hasPermissions('B_salesDetailExport_salesPrice')) {
|
|
|
_this.form.priceType = _this.form.dataScope == 'ENOUGH' ? 'SALES_BILL_NOT_LACK' : 'SALES_BILL'
|
|
|
}
|
|
|
+ if (_this.form.averagePrice == '1') {
|
|
|
+ _this.form.priceType += '_WEIGHT'
|
|
|
+ }
|
|
|
const obj = {
|
|
|
salesBillSn: _this.itemData.salesBillSn,
|
|
|
priceType: _this.form.priceType,
|
|
|
dataScope: _this.form.dataScope == 'all' ? '' : _this.form.dataScope,
|
|
|
- type: isPrint || 'preview',
|
|
|
- averagePrice: _this.form.averagePrice
|
|
|
+ type: isPrint || 'preview'
|
|
|
}
|
|
|
_this.$emit('ok', obj)
|
|
|
}
|