linwenxin před 1 rokem
rodič
revize
a286463df1

+ 4 - 1
src/views/workOrder/penaltyWorkOrder/index.vue

@@ -14,6 +14,8 @@
       <div v-if="~['add', 'detail'].indexOf(activeKey)" style="box-sizing: border-box;padding: 16px;">
         <div>
           <zj-form-container ref="formRef" :form-data="formData" :styleSwitch="false">
+            <zj-form-module title="单据信息" :showPackUp="false" :form-data="formData" :form-items="formItems">
+            </zj-form-module>
             <zj-form-module title="客户信息" :showPackUp="false" :form-data="formData" :form-items="basicInfo">
             </zj-form-module>
             <zj-form-module title="产品信息" :showPackUp="false" :form-data="formData" :form-items="product">
@@ -46,10 +48,11 @@ import basicInfo from "./mixins/basicInfo"
 import productColumns from "./mixins/productColumns"
 import pandanxinxi from "./mixins/pandanxinxi"
 import czpandanxinxi from "./mixins/czpandanxinxi"
+import common_form from "./mixins/common_form"
 import { orderPunishList, orderPunishListExport, orderPunishExamine, orderPunishDelete, orderPunishDetail, orderPunishSave } from "@/api/penaltyWorkOrder";
 export default {
   components: { TemplatePage },
-  mixins: [import_mixin, operation_mixin, basicInfo, productColumns, pandanxinxi, czpandanxinxi],
+  mixins: [import_mixin, operation_mixin, basicInfo, productColumns, pandanxinxi, czpandanxinxi, common_form],
   data() {
     return {
       // 表格属性

+ 45 - 0
src/views/workOrder/penaltyWorkOrder/mixins/common_form.js

@@ -0,0 +1,45 @@
+
+export default {
+  computed: {
+    formItems() {
+      return [
+        {
+          md: 24,
+          isShow: true,
+          name: 'slot-component',
+          formItemAttributes: {
+            label: '',
+            prop: '',
+            'label-width': '0px'
+          },
+          render: (h, { props, onInput }) => {
+            var { value } = props
+            return (
+              <div>
+                <el-descriptions
+                  border
+                  title=""
+                  column={4}
+                  colon={false}
+                  labelStyle={{ width: '8%' }}
+                  contentStyle={{ width: '17%' }}
+                >
+                  <el-descriptions-item label="所属商户">{JSON.parse(localStorage.getItem('greemall_user')).companyName}</el-descriptions-item>
+                  <el-descriptions-item label="处罚单号">{this.formData.id || ''}</el-descriptions-item>
+                  <el-descriptions-item label="状态">
+                    {{ SAVE: '保存', WAIT: '待审核', OK: '通过', FAIL: '失败' }[this.formData.status] || ''}
+                  </el-descriptions-item>
+                  <el-descriptions-item label=""></el-descriptions-item>
+                  <el-descriptions-item label="创建人">{this.formData.createBy || ''}</el-descriptions-item>
+                  <el-descriptions-item label="创建时间">{this.formData.createTime || ''}</el-descriptions-item>
+                  <el-descriptions-item label="审核人">{this.formData.examineBy || ''}</el-descriptions-item>
+                  <el-descriptions-item label="审核时间">{this.formData.examineTime || ''}</el-descriptions-item>
+                </el-descriptions>
+              </div>
+            )
+          }
+        }
+      ]
+    }
+  },
+}