瀏覽代碼

调拨打印

chenrui 1 年之前
父節點
當前提交
4e73793c7b
共有 1 個文件被更改,包括 19 次插入2 次删除
  1. 19 2
      src/views/allocationManagement/transferOut/printModal.vue

+ 19 - 2
src/views/allocationManagement/transferOut/printModal.vue

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