ymy преди 2 години
родител
ревизия
f4f215b8ab
променени са 1 файла, в които са добавени 15 реда и са изтрити 9 реда
  1. 15 9
      src/views/audit/productManagement/index.vue

+ 15 - 9
src/views/audit/productManagement/index.vue

@@ -47,7 +47,12 @@
 						</template>
 						<template v-slot:attributeName>
 							<div v-if="isSingle" key="item4">
-								<by-table :propConfig="singleTable" @onChangeRow="getInputValue" ref="singeTable"></by-table>
+								<by-table :propConfig="singleTable" @onChangeRow="getInputValue" ref="singeTable">
+									<template v-slot:stock="{row}">
+										<vxe-input v-if="!isEdit" v-model="row.stock" size="mini" type="integer"></vxe-input>
+										<span v-else>{{ row.stock }}</span>
+									</template>
+								</by-table>
 							</div>
 							<div v-if="!isSingle" key="item5">
 								<el-select :value="selectValue" clearable placeholder="请选择" style="width: 19.5%;"
@@ -234,14 +239,15 @@
 					width: '110px',
 					title: '库存',
 					field: 'stock',
-					component: 'by-input',
-					compConfig: {
-						attr: {
-							size: 'mini',
-							placeholder: ' ',
-							type: "integer",
-						},
-					}
+					slot:true,
+					// component: 'by-input',
+					// compConfig: {
+					// 	attr: {
+					// 		size: 'mini',
+					// 		placeholder: ' ',
+					// 		type: "integer",
+					// 	},
+					// }
 				},
 				{
 					width: '120px',