tangning 1 anno fa
parent
commit
fe783d4105
2 ha cambiato i file con 30 aggiunte e 2 eliminazioni
  1. 16 2
      src/views/Accounting/ListModal.vue
  2. 14 0
      src/views/work/detail.vue

+ 16 - 2
src/views/Accounting/ListModal.vue

@@ -118,6 +118,20 @@
             span: 12,
           },
         },
+        {
+          field: 'remark',
+          component: 'InputTextArea',
+          required: false,
+          label: '回单备注',
+          componentProps: {
+            maxLength: 500,
+            rows: 4,
+            placeholder: '请填写回单备注',
+          },
+          colProps: {
+            span: 18,
+          },
+        },
       ];
       const [registerForm, { validate, resetFields, setFieldsValue }] = useForm({
         labelWidth: 100,
@@ -163,7 +177,7 @@
         });
       }
       const handleSubmit = async () => {
-        const { checkAccountImg, repairId } = await validate();
+        const { checkAccountImg, repairId, remark } = await validate();
         try {
           createConfirm({
             iconType: 'warning',
@@ -171,7 +185,7 @@
             content: '确定提交到账登记吗?',
             onOk: async () => {
               loading.value = true;
-              await checkAccount({ checkAccountImg, repairId });
+              await checkAccount({ checkAccountImg, repairId, remark });
               loading.value = false;
               createMessage.success(t('common.optSuccess'));
               closeModal();

+ 14 - 0
src/views/work/detail.vue

@@ -166,6 +166,20 @@
                 </PreviewGroup>
               </div>
             </DescriptionsItem>
+            <DescriptionsItem label="回单备注" :span="3">
+              <div v-if="detailData.repairCheckAccount">
+                <p>{{detailData.repairCheckAccount.remark }}</p>
+                <PreviewGroup>
+                  <Image
+                    :width="80"
+                    :height="80"
+                    v-for="item in detailData.repairCheckAccount.checkAccountImg"
+                    :key="item"
+                    :src="item"
+                  />
+                </PreviewGroup>
+              </div>
+            </DescriptionsItem>
             <DescriptionsItem label="取回方式" v-if="detailData.customerAddress">
               {{
                 detailData.customerAddress.getType == 0