inspectInfo.vue 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316
  1. <!--质检信息-->
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left titleup">{{ information }}信息</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button class="bg-bottom" type="primary" size="small" @click="cancel"><img width="6" height="10"
  10. style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  11. </el-button>
  12. </el-col>
  13. </el-row>
  14. <div class="substance">
  15. <ws-form>
  16. <div style="width: 80%; margin: 0 auto">
  17. <div class="title">基本信息</div>
  18. <ws-info-table>
  19. <ws-form-item label="仓库" span="1" prop="warehouseName">
  20. <ws-input v-model="warehouseName" placeholder="请输入仓库" maxlength="100" disabled size="small" />
  21. </ws-form-item>
  22. <ws-form-item label="编号" span="1" prop="qualityNo">
  23. <ws-input v-model="inspect.qualityNo" placeholder="请输入编号" maxlength="100" disabled size="small" />
  24. </ws-form-item>
  25. <ws-form-item label="仓位号" span="1" prop="binNumber">
  26. <ws-select v-model="inspect.binNumber" placeholder="请输入仓位号" class="typeselect" :disabled="disabled">
  27. <ws-option v-for="item in getbinNumberList" :key="item.value" :label="item.value" :value="item.value" />
  28. </ws-select>
  29. </ws-form-item>
  30. <ws-form-item label="囤位号" span="1" prop="storageTagNo">
  31. <ws-input v-model="inspect.storageTagNo" placeholder="请输入囤位号" maxlength="15" size="small"
  32. :disabled="disabled3" />
  33. </ws-form-item>
  34. <ws-form-item label="购粮性质" span="1" prop="natureOfGrainPurchase">
  35. <ws-input v-model="inspect.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="10" size="small"
  36. :disabled="disabled" />
  37. </ws-form-item>
  38. <ws-form-item label="货名" span="1" prop="goodsName">
  39. <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName" @change="waterContentChange">
  40. <ws-option v-for="item in goodNameList" :key="item.goodsName" :label="item.goodsName"
  41. :value="item.goodsName" />
  42. </ws-select>
  43. </ws-form-item>
  44. <ws-form-item label="客户" span="1" prop="customerName">
  45. <el-select v-model="inspect.customerName" clearable filterable placeholder="请选择" class="typeselect"
  46. @change="customerChange" :disabled="disabled1">
  47. <el-option v-for="item in customerList" :key="item.valueKey" :label="item.value" :value="item.value" />
  48. </el-select>
  49. </ws-form-item>
  50. <ws-form-item label="车牌号" span="1" prop="carNumber">
  51. <!-- <el-select v-model="inspect.carNumber" clearable @blur="selectBlur" filterable placeholder="请选择" class="typeselect" @change="shipperNameChange"
  52. :disabled="disabled1"> -->
  53. <el-select v-model="inspect.carNumber" clearable filterable allow-create default-first-option placeholder="请选择" class="typeselect" @change="shipperNameChange"
  54. :disabled="disabled1">
  55. <el-option v-for="(item,index) in carNumberList" :key="index" :label="item.carNo" :value="index" />
  56. </el-select>
  57. <!-- <ws-input @change='carnochange' v-model="inspect.carNumber" placeholder="请输入车牌号" maxlength="10" size="small"
  58. :disabled="disabled" /> -->
  59. </ws-form-item>
  60. <ws-form-item label="箱号-1" span="1" prop="boxNo">
  61. <ws-input :disabled="disabled" v-model="inspect.boxNo" placeholder="请输入箱号" maxlength="20" size="small" />
  62. </ws-form-item>
  63. <ws-form-item label="箱号-2" span="1" prop="boxNoOther">
  64. <ws-input :disabled="disabled" v-model="inspect.boxNoOther" placeholder="请输入箱号" maxlength="20"
  65. size="small" />
  66. </ws-form-item>
  67. <ws-form-item label="封号-1" span="1" prop="titleNo">
  68. <ws-input :disabled="disabled" v-model="inspect.titleNo" placeholder="请输入封号" maxlength="20"
  69. size="small" />
  70. </ws-form-item>
  71. <ws-form-item label="封号-2" span="1" prop="titleNoOther">
  72. <ws-input :disabled="disabled" v-model="inspect.titleNoOther" placeholder="请输入封号" maxlength="20"
  73. size="small" />
  74. </ws-form-item>
  75. <ws-form-item v-if="inspect.paramType != '1'" label="扣重比" span="1" prop="buckleWeightRatio">
  76. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.buckleWeightRatio"
  77. placeholder="请输入扣重比" maxlength="100" size="small" :disabled="disabled" />
  78. </ws-form-item>
  79. <ws-form-item v-else label="扣杂" span="1" prop="buckleWeightRatio">
  80. <ws-input type="number" style="padding-right:30px" @mousewheel.native.prevent
  81. v-model="inspect.buckleMiscellaneous" @input="waterContentChange" placeholder="请输入扣杂" maxlength="100"
  82. size="small" :disabled="disabled" />
  83. <ws-input v-if='types==4' type="number" @mousewheel.native.prevent v-model="inspect.reBuckleMiscellaneous"
  84. placeholder="请输入扣杂" maxlength="100" size="small" />
  85. <ws-input v-else type="number" @mousewheel.native.prevent v-model="inspect.reBuckleMiscellaneous"
  86. placeholder="未复检" maxlength="100" size="small" disabled />
  87. </ws-form-item>
  88. <ws-form-item label="类型" span="1" prop="type">
  89. <ws-select v-model="inspect.type" disabled @change="typeChange">
  90. <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
  91. </ws-select>
  92. </ws-form-item>
  93. <ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
  94. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价"
  95. maxlength="10" size="small" />
  96. </ws-form-item>
  97. <ws-form-item label="干粮单价(元/公斤)" span="2" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
  98. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价"
  99. maxlength="10" size="small" />
  100. </ws-form-item>
  101. <ws-form-item label="复检备注" span="2" prop="reMemo" v-if="information == '编辑复检' || statusShow == '已复检'">
  102. <ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-if="statusShow != '已复检'" />
  103. <ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-else disabled />
  104. </ws-form-item>
  105. <ws-form-item label="车型" span="2" prop="dryGrainPrice" v-if="types==4&&warehouseName=='鲅鱼圈金信库'||types==2&&warehouseName=='鲅鱼圈金信库'">
  106. <el-select v-model="inspect.carModel" clearable filterable placeholder="请选择" class="typeselect"
  107. :disabled="disabled3">
  108. <el-option v-for="item in cartypeList" :key="item.constValue" :label="item.constValue" :value="item.constValue" />
  109. </el-select>
  110. </ws-form-item>
  111. </ws-info-table>
  112. <div class="title">质检数据&nbsp;&nbsp;&nbsp;&nbsp; </div>
  113. <!-- <div class="title">质检数据&nbsp;&nbsp;&nbsp;&nbsp; <el-checkbox v-if='types==1||types==3' v-model="checked">补录</el-checkbox></div> -->
  114. <ws-info-table>
  115. <ws-form-item label="等级" span="1" prop="grade">
  116. <ws-select v-model="inspect.grade" placeholder="请输入等级" class="typeselect" :disabled="disabled"
  117. @change="waterContentChange">
  118. <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
  119. :value="item.constValue" />
  120. </ws-select>
  121. </ws-form-item>
  122. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  123. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.impurity" placeholder="请输入杂质占比"
  124. maxlength="100" size="small" :disabled="disabled" />
  125. </ws-form-item>
  126. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  127. <ws-input type="number" @mousewheel.native.prevent style="padding-right:30px"
  128. v-model="inspect.waterContent" placeholder="请输入水分占比" maxlength="100" size="small"
  129. @change="waterContentChange('water')" :disabled="disabled" />
  130. <ws-input v-if='types==4' type="number" @mousewheel.native.prevent v-model="inspect.reWaterContent"
  131. placeholder="请输入水分占比" maxlength="100" size="small" />
  132. <ws-input v-else type="number" @mousewheel.native.prevent v-model="inspect.reWaterContent"
  133. placeholder="未复检" maxlength="100" size="small" disabled />
  134. </ws-form-item>
  135. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  136. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.mildewGrain" placeholder="请输入霉变粒占比"
  137. maxlength="100" size="small" :disabled="disabled" />
  138. </ws-form-item>
  139. <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
  140. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.bulkDensity" placeholder="请输入容重"
  141. maxlength="100" size="small" :disabled="disabled" />
  142. </ws-form-item>
  143. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  144. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.jiaorenli" placeholder="请输入热损伤占比"
  145. maxlength="100" size="small" :disabled="disabled" />
  146. </ws-form-item>
  147. <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
  148. <ws-input type="number" @mousewheel.native.prevent v-model="inspect.imperfectGrain"
  149. placeholder="请输入不完善粒占比" maxlength="100" size="small" :disabled="disabled" />
  150. </ws-form-item>
  151. </ws-info-table>
  152. <div class="but">
  153. <el-button @click="cancel" v-if="types != 2" type="primary">取消</el-button>
  154. <el-button @click="checkOk" v-if="types == 4" type="primary">确认初检信息</el-button>
  155. <el-button @click="print" v-if="types ==3 || types ==1" type="primary">保存</el-button>
  156. <el-button @click="print" v-if="types == 5 || types==4" type="primary">确认并打印</el-button>
  157. <el-button @click="cancel" v-if="types == 2" type="primary">关闭</el-button>
  158. </div>
  159. </div>
  160. </ws-form>
  161. </div>
  162. <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单" @opened='opendBtn' @close="closeDialog"
  163. :close-on-click-modal="false">
  164. <inspectInfoPrint :printData="inspect" ref="saveImg"></inspectInfoPrint>
  165. <div style="text-align:center">
  166. <el-button type="primary" @click="closePrint">关闭</el-button>
  167. <el-button type="primary" @click="printSmall">打印小票</el-button>
  168. <el-button type="primary" @click="printBig">打印单据</el-button>
  169. </div>
  170. </el-dialog>
  171. </div>
  172. </template>
  173. <script>
  174. import {
  175. inspectAdd,
  176. getbinNumber,
  177. getcustomer,
  178. getinspectLook,
  179. getinspectLookUnitPrice,
  180. getinspectLookGoods,
  181. getinspectEdit,
  182. getamount,
  183. getCount,
  184. getDryGrainPrice,
  185. getshippinginfo,
  186. postCheck,
  187. getQRcode,
  188. getcartype
  189. } from '@/model/houseSelfCollect/index'
  190. import {
  191. packList
  192. } from '@/model/contarct/index'
  193. import inspectInfoPrint from './component/inspectInfoPrint.vue'
  194. import html2canvas from 'html2canvas'
  195. import axios from 'axios'
  196. export default {
  197. components: {
  198. inspectInfoPrint,
  199. },
  200. watch: {},
  201. data() {
  202. return {
  203. isShowPrint: false,
  204. customerList1: [],
  205. // warehouseList: {},
  206. inspect: {
  207. tidalGrainPrice: 0,
  208. buckleWeightRatio: 0,
  209. natureOfGrainPurchase: '贸易粮',
  210. buckleMiscellaneous: 0,
  211. paramType: 1,
  212. type: '潮粮'
  213. },
  214. carNumberList: [],
  215. disabled: false,
  216. disabled1: false,
  217. checked:false,
  218. disabled2: false,
  219. disabled3:false,
  220. disabledName: false,
  221. types: '1',
  222. information: '添加初检',
  223. goodNameList: [],
  224. gradeList: [],
  225. customerList: [],
  226. getbinNumberList: [],
  227. cartypeList:[],
  228. cangid: '', //仓库id
  229. warehouseName: '',
  230. unitPrice: 0,
  231. count: 0,
  232. cangNo: '',
  233. typeList: ['干粮', '潮粮'],
  234. purchasePriceList: [],
  235. id: '',
  236. imgUrl: '',
  237. printData: {},
  238. num: 0,
  239. tipFlag: true,
  240. allowEdit: 0,
  241. statusShow :''
  242. }
  243. },
  244. activated() {
  245. this.types = this.$route.query.type
  246. this.allowEdit = this.$route.query.allowEdit
  247. if (this.allowEdit == 0) {
  248. this.disabled2 = true
  249. } else if (this.allowEdit == 1) {
  250. this.disabled2 = false
  251. }
  252. if (!this.types) {
  253. this.types = 1
  254. this.information = '添加初检'
  255. this.disabled = false
  256. this.inspect = {
  257. tidalGrainPrice: 0,
  258. buckleWeightRatio: 0,
  259. natureOfGrainPurchase: '贸易粮',
  260. type: '潮粮'
  261. }
  262. }
  263. this.cangid = this.$route.query.cangid
  264. this.warehouseName = this.$route.query.warehouseName
  265. this.cangNo = this.$route.query.warehouseNo
  266. this.count = Number(this.$route.query.count) + 1
  267. this.statusShow = this.$route.query.status
  268. // this.purchasePriceList = this.$route.query.purchasePriceList
  269. this.id = this.$route.query.id
  270. if (this.types == 2) {
  271. this.disabled = true
  272. this.disabled1 = true
  273. this.disabled2 = true
  274. this.disabledName = true
  275. this.disabled3=true
  276. this.information = '查看质检'
  277. } else if (this.types == 3) {
  278. this.disabled = false
  279. this.disabled1 = true
  280. this.disabledName = true
  281. this.information = '编辑初检'
  282. } else if (this.types == 4) {
  283. this.disabled = true
  284. this.disabled1 = true
  285. this.disabledName = true
  286. this.information = '编辑复检'
  287. } else if (this.types == 5) {
  288. this.disabled = false
  289. this.disabled1 = true
  290. this.disabledName = false
  291. this.information = '确认质检'
  292. } else {
  293. this.disabled1 = false
  294. this.disabled = false
  295. this.disabledName = false
  296. }
  297. this.calculation()
  298. this.getList(this.id)
  299. },
  300. methods: {
  301. //确认初检信息
  302. checkOk(){
  303. this.$confirm('确定初检信息后,初检员不需要再次确认质检信息,是否确认提交', '提示', {
  304. confirmButtonText: '确定',
  305. cancelButtonText: '取消',
  306. type: 'warning',
  307. })
  308. .then(() => {
  309. postCheck(this.inspect)
  310. .toPromise()
  311. .then((response) => {
  312. postCheck({id:this.id,flag:2})
  313. .toPromise()
  314. .then((response) => {
  315. if(response == 'OK'){
  316. this.$message.success('提交成功')
  317. this.$router.push({path: 'inspectionManagement' })
  318. }else{
  319. this.$message.error('提交失败')
  320. }
  321. })
  322. }).catch(() => {
  323. return false
  324. })
  325. })
  326. },
  327. printSmall() {
  328. window.open('../../../static/inspection.html?type=1&dataList=' + JSON.stringify(this.inspect))
  329. },
  330. printBig() {
  331. window.open('../../../static/inspection.html?type=2&dataList=' + JSON.stringify(this.inspect))
  332. },
  333. getdate() {
  334. var date = new Date()
  335. var year = date.getFullYear() //获取完整的年份(4位)
  336. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  337. var datetime = date.getDate() //获取当前日(1-31)
  338. if (mouth < 10) {
  339. mouth = '0' + mouth
  340. }
  341. if (datetime < 10) {
  342. datetime = '0' + datetime
  343. }
  344. return String(year) + String(mouth) + String(datetime)
  345. },
  346. calculation() {
  347. let number = '000' + this.count
  348. number = number.substring(number.length - 4, number.length)
  349. this.inspect.qualityNo = 'SGRK' + this.getdate() + this.cangNo + number //SGRK+8位时间+3位仓库编号+4位序列号
  350. },
  351. selectBlur(e) {
  352. if (e.target.value) {
  353. // 不在表单的时候不需要判断,也不需要isname字段
  354. this.inspect.carNumber = e.target.value;
  355. // this.isName = true;
  356. } else {
  357. // this.isName = false;
  358. }
  359. },
  360. opendBtn(){
  361. html2canvas(this.$refs.saveImg.$el).then(canvas => {
  362. let dataURL = canvas.toDataURL('image/png');
  363. this.imgUrl = dataURL;
  364. if (this.imgUrl !== '') {
  365. let b = this.dataURLtoFile(this.imgUrl, 'printImg')
  366. let formdata = new FormData();
  367. formdata.append('file', b);
  368. axios({
  369. method: 'post',
  370. url: this.global.uploadPath,
  371. data: formdata
  372. }).then((response) => {
  373. //编辑接口
  374. this.inspect.pictureAddress = response.data.url
  375. console.log(this.types)
  376. if (this.types == 3) {
  377. this.inspect.flag = 0
  378. } else if (this.types == 4) {
  379. this.inspect.flag = 1
  380. }
  381. getinspectEdit(this.inspect)
  382. .toPromise()
  383. .then((response) => {
  384. this.types = ''
  385. // this.inspect = []
  386. })
  387. })
  388. }
  389. })
  390. },
  391. closeDialog() {
  392. html2canvas(this.$refs.saveImg.$el).then(canvas => {
  393. let dataURL = canvas.toDataURL('image/png');
  394. this.imgUrl = dataURL;
  395. if (this.imgUrl !== '') {
  396. let b = this.dataURLtoFile(this.imgUrl, 'printImg')
  397. let formdata = new FormData();
  398. formdata.append('file', b);
  399. axios({
  400. method: 'post',
  401. url: this.global.uploadPath,
  402. data: formdata
  403. }).then((response) => {
  404. //编辑接口
  405. this.inspect.pictureAddress = response.data.url
  406. console.log(this.types)
  407. if (this.types == 3) {
  408. this.inspect.flag = 0
  409. } else if (this.types == 4) {
  410. this.inspect.flag = 1
  411. }
  412. getinspectEdit(this.inspect)
  413. .toPromise()
  414. .then((response) => {
  415. this.types = ''
  416. // this.inspect = []
  417. this.isShowPrint = false
  418. this.$router.push({
  419. path: 'inspectionManagement'
  420. })
  421. })
  422. })
  423. this.dialogTableVisible = true;
  424. }
  425. })
  426. },
  427. typeChange() {
  428. if (this.inspect.type == '干粮' && this.inspect.goodsName) {
  429. getDryGrainPrice({
  430. warehouseId: this.cangid,
  431. goodsName: this.inspect.goodsName
  432. })
  433. .toPromise()
  434. .then((response) => {
  435. this.$set(this.inspect, 'dryGrainPrice', response)
  436. })
  437. }
  438. },
  439. closePrint() {
  440. // this.inspect = []
  441. this.isShowPrint = false
  442. },
  443. submit() {
  444. this.inspect.warehouseName = this.warehouseName
  445. this.inspect.compId = localStorage.getItem('ws-pf_compId')
  446. if (this.types == 1) {
  447. this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
  448. this.$confirm('确定保存质检信息?', '提示', {
  449. confirmButtonText: '确定',
  450. cancelButtonText: '取消',
  451. type: 'warning',
  452. })
  453. .then(() => {
  454. if (!this.inspect.tidalGrainPrice || this.inspect.tidalGrainPrice == 'NaN') {
  455. this.inspect.tidalGrainPrice = 0
  456. }
  457. inspectAdd(this.inspect)
  458. .toPromise()
  459. .then((response) => {
  460. this.checked=false
  461. this.$message.success('保存成功')
  462. getinspectLook({
  463. id: response
  464. })
  465. .toPromise()
  466. .then((response) => {
  467. // let printString = localStorage.getItem('ws-pf_compId') + "," + row.qualityNo + "," + this.cangid
  468. // getQRcode({printString}).toPromise()
  469. // .then((res) => {
  470. this.isShowPrint = true
  471. this.printData = response
  472. // this.printData.qrCodeUrl = res
  473. // })
  474. this.inspect = response
  475. if (response.compName == '黑龙江秋收有限公司') {
  476. this.inspect.compName = '黑龙江中天昊元贸易有限公司'
  477. }
  478. })
  479. this.isShowPrint = true
  480. //打印
  481. // this.$router.go(-1)
  482. })
  483. })
  484. .catch(() => {
  485. return false
  486. })
  487. } else if (this.types == 3) {
  488. this.inspect.qualityInspector = localStorage.getItem('ws-pf_staffName')
  489. this.inspect.flag = 0
  490. this.$confirm('确定保存初检信息?', '提示', {
  491. confirmButtonText: '确定',
  492. cancelButtonText: '取消',
  493. type: 'warning',
  494. })
  495. .then(() => {
  496. // return
  497. getinspectEdit(this.inspect)
  498. .toPromise()
  499. .then((response) => {
  500. this.$message.success('修改成功')
  501. this.checked=false
  502. this.$router.push({
  503. path: 'inspectionManagement'
  504. })
  505. })
  506. })
  507. .catch(() => {
  508. return false
  509. })
  510. } else if (this.types == 4) {
  511. this.inspect.flag = 1
  512. this.inspect.reInspector = localStorage.getItem('ws-pf_roleName') + localStorage.getItem('ws-pf_staffName')
  513. this.$confirm('确定保存复检信息?', '提示', {
  514. confirmButtonText: '确定',
  515. cancelButtonText: '取消',
  516. type: 'warning',
  517. })
  518. .then(() => {
  519. // return
  520. getinspectEdit(this.inspect)
  521. .toPromise()
  522. .then((response) => {
  523. this.$message.success('修改成功')
  524. // this.$router.push({
  525. // path: 'inspectionManagement'
  526. // })
  527. getinspectLook({
  528. id: this.inspect.id
  529. })
  530. .toPromise()
  531. .then((response) => {
  532. this.inspect = response
  533. if (response.compName == '黑龙江秋收有限公司') {
  534. this.inspect.compName = '黑龙江中天昊元贸易有限公司'
  535. }
  536. })
  537. this.isShowPrint = true
  538. })
  539. })
  540. .catch(() => {
  541. return false
  542. })
  543. } else if (this.types == 5) {
  544. this.inspect.flag = 2
  545. // this.inspect.reInspector=localStorage.getItem('ws-pf_roleName') + localStorage.getItem('ws-pf_staffName')
  546. this.$confirm('确定保存质检信息?', '提示', {
  547. confirmButtonText: '确定',
  548. cancelButtonText: '取消',
  549. type: 'warning',
  550. })
  551. .then(() => {
  552. getinspectEdit(this.inspect)
  553. .toPromise()
  554. .then((response) => {
  555. this.$message.success('修改成功')
  556. getinspectLook({
  557. id: this.inspect.id
  558. })
  559. .toPromise()
  560. .then((response) => {
  561. this.inspect = response
  562. if (response.compName == '黑龙江秋收有限公司') {
  563. this.inspect.compName = '黑龙江中天昊元贸易有限公司'
  564. }
  565. })
  566. this.isShowPrint = true
  567. })
  568. })
  569. .catch(() => {
  570. return false
  571. })
  572. }
  573. },
  574. print() {
  575. if (!this.inspect.qualityNo) {
  576. this.$message({
  577. message: '编号不能为空',
  578. type: 'warning',
  579. })
  580. return
  581. }
  582. if (!this.inspect.binNumber) {
  583. this.$message({
  584. message: '仓位不能为空',
  585. type: 'warning',
  586. })
  587. return
  588. }
  589. if (!this.inspect.customerName) {
  590. this.$message({
  591. message: '客户不能为空',
  592. type: 'warning',
  593. })
  594. return
  595. }
  596. // if (!this.inspect.storageTagNo) {
  597. // this.$message({
  598. // message: '囤位号不能为空',
  599. // type: 'warning',
  600. // })
  601. // return
  602. // }
  603. if(this.inspect.storageTagNo){
  604. if (this.inspect.storageTagNo.length > 10) {
  605. this.$message({
  606. message: '囤位号不超过10个字符',
  607. type: 'warning',
  608. })
  609. return
  610. }
  611. }
  612. if (!this.inspect.carNumber) {
  613. this.$message({
  614. message: '车牌号不能为空',
  615. type: 'warning',
  616. })
  617. return
  618. }
  619. if (this.inspect.carNumber.length > 7 || this.inspect.carNumber.length != 7) {
  620. this.$message({
  621. message: '车牌号输入错误',
  622. type: 'warning',
  623. })
  624. return
  625. }
  626. if (this.inspect.boxNo && this.inspect.boxNo.length > 20) {
  627. this.$message({
  628. message: '箱号-1输入错误',
  629. type: 'warning',
  630. })
  631. return
  632. }
  633. if (this.inspect.boxNoOther && this.inspect.boxNoOther.length > 20) {
  634. this.$message({
  635. message: '箱号-2输入错误',
  636. type: 'warning',
  637. })
  638. return
  639. }
  640. if (this.inspect.titleNo && this.inspect.titleNo.length > 20) {
  641. this.$message({
  642. message: '封号-1输入错误',
  643. type: 'warning',
  644. })
  645. return
  646. }
  647. if (this.inspect.titleNoOther && this.inspect.titleNoOther.length > 20) {
  648. this.$message({
  649. message: '封号-2输入错误',
  650. type: 'warning',
  651. })
  652. return
  653. }
  654. if (!this.inspect.goodsName) {
  655. this.$message({
  656. message: '货名不能为空',
  657. type: 'warning',
  658. })
  659. return
  660. }
  661. if (this.inspect.paramType == '2') {
  662. if (
  663. this.inspect.buckleWeightRatio < 0 ||
  664. this.inspect.buckleWeightRatio > 2
  665. ) {
  666. this.$message({
  667. message: '扣重比输入错误',
  668. type: 'warning',
  669. })
  670. return
  671. }
  672. if (
  673. String(this.inspect.buckleWeightRatio).indexOf('.') != -1 &&
  674. String(this.inspect.buckleWeightRatio).length -
  675. (String(this.inspect.buckleWeightRatio).indexOf('.') + 1) >
  676. 2
  677. ) {
  678. this.$message({
  679. message: '扣重比输入错误',
  680. type: 'warning',
  681. })
  682. return
  683. }
  684. }
  685. if (!this.inspect.type) {
  686. this.$message({
  687. message: '类型不能为空',
  688. type: 'warning',
  689. })
  690. return
  691. }
  692. if (!this.inspect.natureOfGrainPurchase) {
  693. this.$message({
  694. message: '购粮性质不能为空',
  695. type: 'warning',
  696. })
  697. return
  698. }
  699. if (this.inspect.type == '干粮') {
  700. if (!this.inspect.dryGrainPrice) {
  701. this.$message({
  702. message: '干粮价格不能为空',
  703. type: 'warning'
  704. })
  705. return
  706. }
  707. if (this.inspect.dryGrainPrice <= 0 || this.inspect.dryGrainPrice > 1000) {
  708. this.$message({
  709. message: '干粮价格输入错误',
  710. type: 'warning'
  711. })
  712. return
  713. }
  714. if (
  715. String(this.inspect.dryGrainPrice).indexOf('.') != -1 &&
  716. String(this.inspect.dryGrainPrice).length - (String(this.inspect.dryGrainPrice).indexOf('.') + 1) > 4) {
  717. this.$message({
  718. message: '干粮价格输入错误',
  719. type: 'warning',
  720. })
  721. return
  722. }
  723. } else {
  724. if (!this.inspect.tidalGrainPrice) {
  725. this.$message({
  726. message: '净重单价不能为空',
  727. type: 'warning'
  728. })
  729. return
  730. }
  731. if (this.inspect.tidalGrainPrice <= 0 || this.inspect.tidalGrainPrice > 1000) {
  732. this.$message({
  733. message: '净重单价输入错误',
  734. type: 'warning'
  735. })
  736. return
  737. }
  738. }
  739. if(!this.checked){
  740. if (!this.inspect.grade) {
  741. this.$message({
  742. message: '等级不能为空',
  743. type: 'warning',
  744. })
  745. return
  746. }
  747. if (!this.inspect.impurity) {
  748. this.$message({
  749. message: '杂质不能为空',
  750. type: 'warning',
  751. })
  752. return
  753. }
  754. if (String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this
  755. .inspect.impurity).indexOf('.') + 1) > 1) {
  756. this.$message({
  757. message: '杂质输入错误',
  758. type: 'warning',
  759. })
  760. return
  761. }
  762. if (this.inspect.impurity < 0 || this.inspect.impurity > 40) {
  763. this.$message({
  764. message: '杂质输入错误',
  765. type: 'warning',
  766. })
  767. return
  768. }
  769. if( this.information != '编辑复检'){
  770. if (!this.inspect.waterContent) {
  771. this.$message({
  772. message: '水分不能为空',
  773. type: 'warning',
  774. })
  775. return
  776. }
  777. if (this.inspect.waterContent < 0 || this.inspect.waterContent > 50) {
  778. this.$message({
  779. message: '水分输入错误',
  780. type: 'warning',
  781. })
  782. return
  783. }
  784. if (String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(
  785. this.inspect.waterContent).indexOf('.') + 1) > 1) {
  786. this.$message({
  787. message: '水分输入错误',
  788. type: 'warning',
  789. })
  790. return
  791. }
  792. }
  793. if (!this.inspect.mildewGrain) {
  794. this.$message({
  795. message: '霉变粒不能为空',
  796. type: 'warning',
  797. })
  798. return
  799. }
  800. if (this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
  801. this.$message({
  802. message: '霉变粒输入错误',
  803. type: 'warning',
  804. })
  805. return
  806. }
  807. if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(
  808. this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
  809. this.$message({
  810. message: '霉变粒输入错误',
  811. type: 'warning',
  812. })
  813. return
  814. }
  815. if (!this.inspect.bulkDensity) {
  816. this.$message({
  817. message: '容重不能为空',
  818. type: 'warning',
  819. })
  820. return
  821. }
  822. if (this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
  823. this.$message({
  824. message: '容重输入错误',
  825. type: 'warning',
  826. })
  827. return
  828. }
  829. if (String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(
  830. this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
  831. this.$message({
  832. message: '容重需输入整数',
  833. type: 'warning',
  834. })
  835. return
  836. }
  837. if (!this.inspect.jiaorenli) {
  838. this.$message({
  839. message: '热损伤不能为空',
  840. type: 'warning',
  841. })
  842. return
  843. }
  844. if (this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
  845. this.$message({
  846. message: '热损伤输入错误',
  847. type: 'warning',
  848. })
  849. return
  850. }
  851. if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this
  852. .inspect.jiaorenli).indexOf('.') + 1) > 1) {
  853. this.$message({
  854. message: '热损伤输入错误',
  855. type: 'warning',
  856. })
  857. return
  858. }
  859. if (!this.inspect.imperfectGrain) {
  860. this.$message({
  861. message: '不完善粒不能为空',
  862. type: 'warning',
  863. })
  864. return
  865. }
  866. if (this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
  867. this.$message({
  868. message: '不完善粒输入错误',
  869. type: 'warning',
  870. })
  871. return
  872. }
  873. if (String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (
  874. String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
  875. this.$message({
  876. message: '不完善粒输入错误',
  877. type: 'warning',
  878. })
  879. return
  880. }
  881. }
  882. getamount({
  883. compId: localStorage.getItem('ws-pf_compId'),
  884. customerNumberCard: this.inspect.customerNumberCard,
  885. goodsName: this.inspect.goodsName,
  886. })
  887. .toPromise()
  888. .then((response) => {
  889. for (let i = 0; i < this.purchasePriceList.length; i++) {
  890. if (
  891. this.inspect.goodsName == this.purchasePriceList[i].goodsName
  892. ) {
  893. let count = (this.purchasePriceList[i].saleLimit - response / 1000).toFixed(2)
  894. if (count <= 0) {
  895. count = 0
  896. this.$alert(
  897. '该客户累计销售' +
  898. this.inspect.goodsName +
  899. (response / 1000).toFixed(2) +
  900. '吨,还可售粮' +
  901. count +
  902. '吨',
  903. '提示', {
  904. confirmButtonText: '确定',
  905. callback: (action) => {
  906. this.$message({
  907. type: 'info',
  908. message: `累计售粮已超出上限`,
  909. })
  910. },
  911. }
  912. )
  913. } else {
  914. this.submit();
  915. }
  916. }
  917. }
  918. })
  919. },
  920. cancel() {
  921. this.types = ''
  922. // this.inspect = []
  923. this.$router.push({
  924. path: 'inspectionManagement'
  925. })
  926. },
  927. shipperNameChange(e) {
  928. this.$set(this.inspect, 'customerName', this.carNumberList[e].shipperName)
  929. this.$set(this.inspect, 'carNumber', this.carNumberList[e].carNo)
  930. this.$set(this.inspect, 'customerPhone', this.carNumberList[e].shipperPhone)
  931. for (let i = 0; i < this.customerList1.length; i++) {
  932. if (this.customerList1[i].customerName == this.inspect.customerName) {
  933. this.inspect.customerNumberCard = this.customerList1[i].customerNumberCard
  934. }
  935. }
  936. if (this.inspect.goodsName && this.inspect.customerName) {
  937. // //查看当前用户对应货名有未结算状态的送货
  938. // let count = 0
  939. // getCount({
  940. // compId: localStorage.getItem('ws-pf_compId'),
  941. // customerName: this.inspect.customerName,
  942. // goodsName: this.inspect.goodsName,
  943. // customerNumberCard: this.inspect.customerNumberCard
  944. // }).toPromise()
  945. // .then((response) => {
  946. // count = response
  947. // })
  948. // 客户下拉校验
  949. // getamount({
  950. // compId: localStorage.getItem('ws-pf_compId'),
  951. // customerName: this.inspect.customerName,
  952. // goodsName: this.inspect.goodsName,
  953. // customerNumberCard:this.inspect.customerNumberCard
  954. // })
  955. // .toPromise()
  956. // .then((response) => {
  957. // for (let i = 0; i < this.purchasePriceList.length; i++) {
  958. // if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
  959. // if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0)&&this.tipFlag) {
  960. // this.tipFlag = false
  961. // this.$message('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。');
  962. // }
  963. // }
  964. // }
  965. // })
  966. }
  967. },
  968. customerChange(e) {
  969. let customers = e.split('(')
  970. this.inspect.customerName = customers[0]
  971. for (let i = 0; i < this.customerList1.length; i++) {
  972. // console.log(this.customerList1[i].customerName, this.customerList1[i])
  973. if (this.customerList1[i].customerName == this.inspect.customerName) {
  974. // console.log(this.customerList1[i])
  975. this.inspect.customerNumberCard = this.customerList1[i].customerNumberCard
  976. }
  977. }
  978. this.inspect.customerPhone = customers[1].split(')')[0]
  979. if (this.inspect.goodsName && this.inspect.customerName) {
  980. // //查看当前用户对应货名有未结算状态的送货
  981. // let count = 0
  982. // getCount({
  983. // compId: localStorage.getItem('ws-pf_compId'),
  984. // customerName: this.inspect.customerName,
  985. // goodsName: this.inspect.goodsName,
  986. // customerNumberCard: this.inspect.customerNumberCard
  987. // }).toPromise()
  988. // .then((response) => {
  989. // count = response
  990. // })
  991. // // 客户下拉校验
  992. // getamount({
  993. // compId: localStorage.getItem('ws-pf_compId'),
  994. // customerName: this.inspect.customerName,
  995. // goodsName: this.inspect.goodsName,
  996. // customerNumberCard:this.inspect.customerNumberCard
  997. // })
  998. // .toPromise()
  999. // .then((response) => {
  1000. // for (let i = 0; i < this.purchasePriceList.length; i++) {
  1001. // if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
  1002. // if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0)&&this.tipFlag) {
  1003. // this.tipFlag = false
  1004. // this.$message('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。');
  1005. // }
  1006. // }
  1007. // }
  1008. // })
  1009. }
  1010. },
  1011. waterContentChange(type) {
  1012. if (this.inspect.goodsName && type != 'water') {
  1013. if (this.inspect.goodsName.indexOf('潮粮') != -1) {
  1014. this.inspect.type = '潮粮'
  1015. } else {
  1016. this.inspect.type = '干粮'
  1017. }
  1018. if (!this.inspect.dryGrainPrice || this.inspect.dryGrainPrice == 0) {
  1019. getDryGrainPrice({
  1020. warehouseId: this.cangid,
  1021. goodsName: this.inspect.goodsName
  1022. })
  1023. .toPromise()
  1024. .then((response) => {
  1025. this.$set(this.inspect, 'dryGrainPrice', response)
  1026. })
  1027. }
  1028. //客户
  1029. getcustomer({
  1030. warehouseId: this.cangid,
  1031. goodsName:this.inspect.goodsName
  1032. })
  1033. .toPromise()
  1034. .then((response) => {
  1035. this.customerList1 = response
  1036. this.customerList = []
  1037. let customer = response
  1038. for (let i = 0; i < response.length; i++) {
  1039. if (response[i].supplier) {
  1040. customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
  1041. .supplier
  1042. } else {
  1043. customer = response[i].customerName + '(' + response[i].customerPhone + ')'
  1044. }
  1045. this.customerList.push({
  1046. valueKey: i,
  1047. value: customer,
  1048. })
  1049. }
  1050. })
  1051. for (var i = 0; i < this.purchasePriceList.length; i++) {
  1052. if (this.purchasePriceList[i].goodsName == this.inspect.goodsName) {
  1053. this.$set(this.inspect, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
  1054. this.$set(this.inspect, 'paramType', this.purchasePriceList[i].paramType)
  1055. }
  1056. }
  1057. }
  1058. //潮粮单价改变事件
  1059. if (
  1060. this.inspect.goodsName &&
  1061. this.inspect.waterContent &&
  1062. this.inspect.grade
  1063. ) {
  1064. getinspectLookUnitPrice({
  1065. warehouseId: this.cangid,
  1066. goodsName: this.inspect.goodsName,
  1067. waterContent: this.inspect.waterContent,
  1068. grade: this.inspect.grade,
  1069. })
  1070. .toPromise()
  1071. .then((response) => {
  1072. if (this.inspect.paramType == '1') {
  1073. this.inspect.tidalGrainPrice = parseFloat(parseFloat(response) - parseFloat(this.inspect
  1074. .buckleMiscellaneous) / 100 * parseFloat(this.inspect.dryGrainPrice)).toFixed(4)
  1075. } else {
  1076. if (this.inspect.type == '干粮') {
  1077. if (response == 0) {
  1078. getDryGrainPrice({
  1079. warehouseId: this.cangid,
  1080. goodsName: this.inspect.goodsName
  1081. })
  1082. .toPromise()
  1083. .then((response) => {
  1084. this.$set(this.inspect, 'dryGrainPrice', response)
  1085. })
  1086. } else {
  1087. this.inspect.dryGrainPrice = response
  1088. }
  1089. } else {
  1090. this.inspect.tidalGrainPrice = response
  1091. }
  1092. }
  1093. })
  1094. }
  1095. if (this.inspect.goodsName && this.inspect.customerName) {
  1096. // //查看当前用户对应货名有未结算状态的送货
  1097. // let count = 0
  1098. // if (
  1099. // this.inspect.goodsName &&
  1100. // this.inspect.customerName
  1101. // ) {
  1102. // getCount({
  1103. // compId: localStorage.getItem('ws-pf_compId'),
  1104. // customerName: this.inspect.customerName,
  1105. // goodsName: this.inspect.goodsName,
  1106. // customerNumberCard: this.inspect.customerNumberCard
  1107. // }).toPromise()
  1108. // .then((response) => {
  1109. // count = response
  1110. // })
  1111. // // // 货名下拉校验
  1112. // // getamount({
  1113. // // compId: localStorage.getItem('ws-pf_compId'),
  1114. // // customerName: this.inspect.customerName,
  1115. // // goodsName: this.inspect.goodsName,
  1116. // // customerNumberCard:this.inspect.customerNumberCard
  1117. // // })
  1118. // // .toPromise()
  1119. // // .then((response) => {
  1120. // // for (let i = 0; i < this.purchasePriceList.length; i++) {
  1121. // // if (this.inspect.goodsName == this.purchasePriceList[i].goodsName) {
  1122. // // if ((this.purchasePriceList[i].saleLimit - response/1000 < 50 || count > 0 )&&this.tipFlag) {
  1123. // // this.tipFlag = false
  1124. // // this.$message('当前客户已累计销售我司' +this.inspect.goodsName + (response/1000).toFixed(2) +'吨,最高可售' +this.purchasePriceList[i].saleLimit +'吨。');
  1125. // // }
  1126. // // }
  1127. // // }
  1128. // // })
  1129. // }
  1130. }
  1131. },
  1132. getList(ids) {
  1133. // 车型
  1134. getcartype({constId:'QUA1'}).toPromise()
  1135. .then((response) => {
  1136. this.cartypeList=response
  1137. })
  1138. // 货名
  1139. getinspectLookGoods({
  1140. warehouseId: this.cangid
  1141. })
  1142. .toPromise()
  1143. .then((response) => {
  1144. this.goodNameList = []
  1145. this.goodNameList = response
  1146. this.purchasePriceList = response
  1147. })
  1148. // 品级
  1149. packList({
  1150. constId: 'CON3'
  1151. })
  1152. .toPromise()
  1153. .then((response) => {
  1154. this.gradeList = response
  1155. })
  1156. getshippinginfo({
  1157. compId: localStorage.getItem('ws-pf_compId'),
  1158. warehouseName: this.warehouseName
  1159. }).toPromise()
  1160. .then((response) => {
  1161. this.carNumberList = response
  1162. })
  1163. // 仓位
  1164. getbinNumber({
  1165. id: this.cangid
  1166. })
  1167. .toPromise()
  1168. .then((response) => {
  1169. this.getbinNumberList = []
  1170. for (let i = 0; i < response.warehousePositionInfoList.length; i++) {
  1171. this.getbinNumberList.push({
  1172. value: response.warehousePositionInfoList[i].binNumber,
  1173. })
  1174. }
  1175. })
  1176. if (this.types != 1) {
  1177. //查看
  1178. getinspectLook({
  1179. id: ids
  1180. })
  1181. .toPromise()
  1182. .then((response) => {
  1183. this.inspect = response
  1184. })
  1185. }
  1186. },
  1187. },
  1188. }
  1189. </script>
  1190. <style lang="scss" scoped>
  1191. /deep/.el-dialog__header {
  1192. text-align: center !important;
  1193. padding: 10px 0 !important;
  1194. height: auto !important;
  1195. }
  1196. /deep/.el-dialog__title {
  1197. font-size: 24px !important;
  1198. }
  1199. .center {
  1200. background: #f6f7fc;
  1201. }
  1202. .ws-info-table {
  1203. border: none;
  1204. }
  1205. .ws-info-table .el-form-item {
  1206. width: 50%;
  1207. border: none;
  1208. }
  1209. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1210. width: 30%;
  1211. text-align: center;
  1212. background: #ffffff;
  1213. font-size: 14px;
  1214. color: #8890b1;
  1215. }
  1216. /deep/.ws-info-table .el-form-item .el-form-item__content {
  1217. border: none;
  1218. // overflow: auto!important;
  1219. height: 55px;
  1220. }
  1221. /deep/.el-textarea__inner {
  1222. width: 100%;
  1223. }
  1224. .title {
  1225. font-size: 16px;
  1226. font-weight: 600;
  1227. margin: 10px;
  1228. }
  1229. .titleup {
  1230. position: relative;
  1231. }
  1232. .title::before {
  1233. content: '';
  1234. display: inline-block;
  1235. width: 5px;
  1236. height: 15px;
  1237. background: #8890b1;
  1238. margin-right: 5px;
  1239. }
  1240. .substance {
  1241. background: #ffffff;
  1242. width: 100%;
  1243. border-radius: 4px;
  1244. margin: 0 auto;
  1245. padding-top: 20px;
  1246. }
  1247. /deep/.el-table .el-table__header .cell,
  1248. .el-table .el-table__body .cell {
  1249. text-align: center;
  1250. }
  1251. /deep/.el-table--enable-row-transition .el-table__body td {
  1252. text-align: center;
  1253. }
  1254. .bg-left {
  1255. padding-left: 30px;
  1256. }
  1257. .bg-right {
  1258. padding-right: 10px;
  1259. text-align: right;
  1260. }
  1261. .bg-bottom {
  1262. margin: 15px 0px;
  1263. }
  1264. .titleup {
  1265. position: relative;
  1266. }
  1267. .titleup::before {
  1268. content: '';
  1269. display: inline-block;
  1270. width: 5px;
  1271. height: 30px;
  1272. background: #5473e8;
  1273. position: absolute;
  1274. left: 0;
  1275. }
  1276. .but {
  1277. text-align: center;
  1278. // margin: 20px auto;
  1279. }
  1280. </style>