|
@@ -50,6 +50,11 @@
|
|
<a-radio value="ALLOCATE_BILL">不导出</a-radio>
|
|
<a-radio value="ALLOCATE_BILL">不导出</a-radio>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
|
|
+ <a-form-model-item label="备注" prop="priceType" v-if="nowType=='dbPrint'">
|
|
|
|
+ <a-checkbox @change="onChangeRemark" :checked="remarkFlag">
|
|
|
|
+ 打印
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-form-model-item>
|
|
</a-form-model>
|
|
</a-form-model>
|
|
<div class="btn-cont">
|
|
<div class="btn-cont">
|
|
<a-button id="allocateBill-print-close" @click="handleClose('preview')">取消</a-button>
|
|
<a-button id="allocateBill-print-close" @click="handleClose('preview')">取消</a-button>
|
|
@@ -102,8 +107,10 @@ export default {
|
|
form: {
|
|
form: {
|
|
id: 'all',
|
|
id: 'all',
|
|
priceType: 'ALLOCATE_BILL',
|
|
priceType: 'ALLOCATE_BILL',
|
|
- orderBy: undefined
|
|
|
|
|
|
+ orderBy: undefined,
|
|
|
|
+ remarkFlag: 1// 备货打印 1打印 0不打印
|
|
},
|
|
},
|
|
|
|
+ remarkFlag: true,
|
|
rules: {
|
|
rules: {
|
|
id: [{ required: true, message: '请选择产品分类', trigger: 'change' }],
|
|
id: [{ required: true, message: '请选择产品分类', trigger: 'change' }],
|
|
priceType: [{ required: true, message: '请选择产品价格', trigger: 'change' }],
|
|
priceType: [{ required: true, message: '请选择产品价格', trigger: 'change' }],
|
|
@@ -136,6 +143,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onChangeRemark (e) {
|
|
|
|
+ this.remarkFlag = e.target.checked
|
|
|
|
+ this.form.remarkFlag = e.target.checked ? 1 : 0
|
|
|
|
+ },
|
|
// 确认
|
|
// 确认
|
|
handleSave (type) {
|
|
handleSave (type) {
|
|
const _this = this
|
|
const _this = this
|
|
@@ -159,6 +170,7 @@ export default {
|
|
printType: _this.form.priceType,
|
|
printType: _this.form.priceType,
|
|
isPreview: type == 'preview' ? 1 : 0
|
|
isPreview: type == 'preview' ? 1 : 0
|
|
}
|
|
}
|
|
|
|
+
|
|
// 分类打印/导出
|
|
// 分类打印/导出
|
|
if (_this.nowType == 'dbflPrint' || _this.nowType == 'dbflExport') {
|
|
if (_this.nowType == 'dbflPrint' || _this.nowType == 'dbflExport') {
|
|
const item = _this.typeList.find(item => item.id == _this.form.id)
|
|
const item = _this.typeList.find(item => item.id == _this.form.id)
|
|
@@ -175,6 +187,9 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 打印
|
|
// 打印
|
|
|
|
+ if (this.nowType == 'dbPrint') {
|
|
|
|
+ obj.remarkFlag = this.form.remarkFlag
|
|
|
|
+ }
|
|
if (_this.nowType == 'dbPrint' || _this.nowType == 'dbflPrint') {
|
|
if (_this.nowType == 'dbPrint' || _this.nowType == 'dbflPrint') {
|
|
_this.$emit('ok', obj)
|
|
_this.$emit('ok', obj)
|
|
} else {
|
|
} else {
|
|
@@ -204,8 +219,10 @@ export default {
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
this.form = {
|
|
this.form = {
|
|
id: 'all',
|
|
id: 'all',
|
|
- priceType: 'ALLOCATE_BILL'
|
|
|
|
|
|
+ priceType: 'ALLOCATE_BILL',
|
|
|
|
+ remarkFlag: 1
|
|
}
|
|
}
|
|
|
|
+ this.remarkFlag = true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|